<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FabGL: displaycontroller.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">FabGL
   </div>
   <div id="projectbrief">ESP32 Display Controller and Graphics Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('displaycontroller_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">displaycontroller.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="displaycontroller_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">  Created by Fabrizio Di Vittorio (fdivitto2013@gmail.com) - &lt;http://www.fabgl.com&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">  Copyright (c) 2019-2021 Fabrizio Di Vittorio.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">  All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">* Please contact fdivitto2013@gmail.com if you need a commercial license.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">* This library and related software is available under GPL v3.</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">  FabGL is free software: you can redistribute it and/or modify</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">  it under the terms of the GNU General Public License as published by</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">  the Free Software Foundation, either version 3 of the License, or</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">  (at your option) any later version.</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">  FabGL is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">  GNU General Public License for more details.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">  You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">  along with FabGL.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &lt;stddef.h&gt;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;freertos/FreeRTOS.h&quot;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &quot;freertos/queue.h&quot;</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &quot;freertos/task.h&quot;</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="fabglconf_8h.html">fabglconf.h</a>&quot;</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="fabutils_8h.html">fabutils.h</a>&quot;</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacefabgl.html">fabgl</a> {</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">  Notes:</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">    - all positions can have negative and outofbound coordinates. Shapes are always clipped correctly.</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword">enum</span> PrimitiveCmd : uint8_t {</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  <span class="comment">// Needed to send the updated area of screen buffer on some displays (ie SSD1306)</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  Flush,</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  <span class="comment">// Refresh display. Some displays (ie SSD1306) aren&#39;t repainted if there aren&#39;t primitives</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  <span class="comment">// so posting Refresh allows to resend the screenbuffer</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  <span class="comment">// params: rect (rectangle to refresh)</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  Refresh,</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  <span class="comment">// Reset paint state</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  <span class="comment">// params: none</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  Reset,</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  <span class="comment">// Set current pen color</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  <span class="comment">// params: color</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  SetPenColor,</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  <span class="comment">// Set current brush color</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  <span class="comment">// params: color</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  SetBrushColor,</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  <span class="comment">// Paint a pixel at specified coordinates, using current pen color</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  <span class="comment">// params: color</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  SetPixel,</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  <span class="comment">// Paint a pixel at specified coordinates using the specified color</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;  <span class="comment">// params: pixelDesc</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;  SetPixelAt,</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  <span class="comment">// Move current position to the specified one</span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  <span class="comment">// params: point</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;  MoveTo,</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  <span class="comment">// Draw a line from current position to the specified one, using current pen color. Update current position.</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;  <span class="comment">// params: point</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  LineTo,</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  <span class="comment">// Fill a rectangle using current brush color</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  <span class="comment">// params: rect</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  FillRect,</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;  <span class="comment">// Draw a rectangle using current pen color</span></div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="comment">// params: rect</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  DrawRect,</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <span class="comment">// Fill an ellipse, current position is the center, using current brush color</span></div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  <span class="comment">// params: size</span></div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  FillEllipse,</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  <span class="comment">// Draw an ellipse, current position is the center, using current pen color</span></div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="comment">// params: size</span></div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  DrawEllipse,</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  <span class="comment">// Fill viewport with brush color</span></div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  <span class="comment">// params: none</span></div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  Clear,</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="comment">// Scroll vertically without copying buffers</span></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  <span class="comment">// params: ivalue (scroll amount, can be negative)</span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  VScroll,</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  <span class="comment">// Scroll horizontally (time consuming operation!)</span></div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  <span class="comment">// params: ivalue (scroll amount, can be negative)</span></div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;  HScroll,</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  <span class="comment">// Draw a glyph (BW image)</span></div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  <span class="comment">// params: glyph</span></div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;  DrawGlyph,</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;  <span class="comment">// Set paint options</span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;  <span class="comment">// params: glyphOptions</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;  SetGlyphOptions,</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  <span class="comment">// Set gluph options</span></div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;  <span class="comment">// params: paintOptions</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;  SetPaintOptions,</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;  <span class="comment">// Invert a rectangle</span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  <span class="comment">// params: rect</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;  InvertRect,</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;  <span class="comment">// Copy (overlapping) rectangle to current position</span></div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;  <span class="comment">// params: rect (source rectangle)</span></div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;  CopyRect,</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;  <span class="comment">// Set scrolling region</span></div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;  <span class="comment">// params: rect</span></div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;  SetScrollingRegion,</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;  <span class="comment">// Swap foreground (pen) and background (brush) colors of all pixels inside the specified rectangles. Other colors remain untaltered.</span></div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;  <span class="comment">// params: rect</span></div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;  SwapFGBG,</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;  <span class="comment">// Render glyphs buffer</span></div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;  <span class="comment">// params: glyphsBufferRenderInfo</span></div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;  RenderGlyphsBuffer,</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;  <span class="comment">// Draw a bitmap</span></div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;  <span class="comment">// params: bitmapDrawingInfo</span></div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;  DrawBitmap,</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;  <span class="comment">// Refresh sprites</span></div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;  <span class="comment">// no params</span></div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;  RefreshSprites,</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;  <span class="comment">// Swap buffers (m_doubleBuffered must be True)</span></div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;  <span class="comment">// params: notifyTask</span></div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;  SwapBuffers,</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;  <span class="comment">// Fill a path, using current brush color</span></div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;  <span class="comment">// params: path</span></div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;  FillPath,</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;  <span class="comment">// Draw a path, using current pen color</span></div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;  <span class="comment">// params: path</span></div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;  DrawPath,</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;  <span class="comment">// Set axis origin</span></div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;  <span class="comment">// params: point</span></div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;  SetOrigin,</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;  <span class="comment">// Set clipping rectangle</span></div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;  <span class="comment">// params: rect</span></div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;  SetClippingRect,</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;  <span class="comment">// Set pen width</span></div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;  <span class="comment">// params: ivalue</span></div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;  SetPenWidth,</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;  <span class="comment">// Set line ends</span></div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;  <span class="comment">// params: lineEnds</span></div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;  SetLineEnds,</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;};</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div><div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">  202</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a> {</div><div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cac1e9bce8242f443c54c7405223d616cd">  203</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cac1e9bce8242f443c54c7405223d616cd">Black</a>,          </div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cad3163c1fcda01965b692ec2c3122b743">  204</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cad3163c1fcda01965b692ec2c3122b743">Red</a>,            </div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cad0784a3f969fe736e8b271a5a161d106">  205</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cad0784a3f969fe736e8b271a5a161d106">Green</a>,          </div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cabf28513245738599d13e3ce36bd16c82">  206</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cabf28513245738599d13e3ce36bd16c82">Yellow</a>,         </div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1caf5e09dd1da4088464f264b7a3118bff8">  207</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1caf5e09dd1da4088464f264b7a3118bff8">Blue</a>,           </div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cab5059a620e2c7dc57556b1e275c2f9bc">  208</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cab5059a620e2c7dc57556b1e275c2f9bc">Magenta</a>,        </div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cab0d4738f9c7f12049e52aa4e868bdc8b">  209</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cab0d4738f9c7f12049e52aa4e868bdc8b">Cyan</a>,           </div><div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cab548046646b36c12aa6ba841de500094">  210</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cab548046646b36c12aa6ba841de500094">White</a>,          </div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca27b99bd106651508d81314cf1d9f48b4">  211</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca27b99bd106651508d81314cf1d9f48b4">BrightBlack</a>,    </div><div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca2ed18d4ecd62410034c7ff19a1384357">  212</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca2ed18d4ecd62410034c7ff19a1384357">BrightRed</a>,      </div><div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca8e551a5ca49dca47dd8d5af7a04dd9ea">  213</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca8e551a5ca49dca47dd8d5af7a04dd9ea">BrightGreen</a>,    </div><div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca19153c6eb83006792aac10c7eddb1df6">  214</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca19153c6eb83006792aac10c7eddb1df6">BrightYellow</a>,   </div><div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1caaf9643770f3422478c9b60a3c71cd0aa">  215</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1caaf9643770f3422478c9b60a3c71cd0aa">BrightBlue</a>,     </div><div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cad2982af85dc38167ea0fe5befa9feb26">  216</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cad2982af85dc38167ea0fe5befa9feb26">BrightMagenta</a>,  </div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca0ec16bf946457321307d9059f06344dc">  217</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca0ec16bf946457321307d9059f06344dc">BrightCyan</a>,     </div><div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca3bec3eb0c8a4aab8e31a3a290493ab85">  218</a></span>&#160;  <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca3bec3eb0c8a4aab8e31a3a290493ab85">BrightWhite</a>,    </div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;};</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b888.html">  228</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> {</div><div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b888_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">  229</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b888_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">R</a>;  </div><div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b888_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">  230</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b888_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">G</a>;  </div><div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b888_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">  231</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b888_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">B</a>;  </div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;  <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a>() : <a class="code" href="structfabgl_1_1_r_g_b888_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">R</a>(0), <a class="code" href="structfabgl_1_1_r_g_b888_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">G</a>(0), <a class="code" href="structfabgl_1_1_r_g_b888_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">B</a>(0) { }</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;  <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a>(<a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a> color);</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;  <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a>(uint8_t red, uint8_t green, uint8_t blue) : <a class="code" href="structfabgl_1_1_r_g_b888_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">R</a>(red), <a class="code" href="structfabgl_1_1_r_g_b888_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">G</a>(green), <a class="code" href="structfabgl_1_1_r_g_b888_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">B</a>(blue) { }</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;} __attribute__ ((packed));</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> operator==(RGB888 <span class="keyword">const</span>&amp; lhs, RGB888 <span class="keyword">const</span>&amp; rhs)</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;{</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;  <span class="keywordflow">return</span> lhs.R == rhs.R &amp;&amp; lhs.G == rhs.G &amp;&amp; lhs.B == rhs.B;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;}</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> operator!=(RGB888 <span class="keyword">const</span>&amp; lhs, RGB888 <span class="keyword">const</span>&amp; rhs)</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;{</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;  <span class="keywordflow">return</span> lhs.R != rhs.R || lhs.G != rhs.G || lhs.B == rhs.B;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;}</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b_a8888.html">  257</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structfabgl_1_1_r_g_b_a8888.html">RGBA8888</a> {</div><div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b_a8888_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">  258</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b_a8888_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">R</a>;  </div><div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b_a8888_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">  259</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b_a8888_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">G</a>;  </div><div class="line"><a name="l00260"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b_a8888_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">  260</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b_a8888_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">B</a>;  </div><div class="line"><a name="l00261"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b_a8888_aa99de428bd3e7715b73b335a5af9e900.html#aa99de428bd3e7715b73b335a5af9e900">  261</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b_a8888_aa99de428bd3e7715b73b335a5af9e900.html#aa99de428bd3e7715b73b335a5af9e900">A</a>;  </div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;  <a class="code" href="structfabgl_1_1_r_g_b_a8888.html">RGBA8888</a>() : <a class="code" href="structfabgl_1_1_r_g_b_a8888_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">R</a>(0), <a class="code" href="structfabgl_1_1_r_g_b_a8888_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">G</a>(0), <a class="code" href="structfabgl_1_1_r_g_b_a8888_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">B</a>(0), <a class="code" href="structfabgl_1_1_r_g_b_a8888_aa99de428bd3e7715b73b335a5af9e900.html#aa99de428bd3e7715b73b335a5af9e900">A</a>(0) { }</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;  <a class="code" href="structfabgl_1_1_r_g_b_a8888.html">RGBA8888</a>(<span class="keywordtype">int</span> red, <span class="keywordtype">int</span> green, <span class="keywordtype">int</span> blue, <span class="keywordtype">int</span> alpha) : <a class="code" href="structfabgl_1_1_r_g_b_a8888_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">R</a>(red), <a class="code" href="structfabgl_1_1_r_g_b_a8888_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">G</a>(green), <a class="code" href="structfabgl_1_1_r_g_b_a8888_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">B</a>(blue), <a class="code" href="structfabgl_1_1_r_g_b_a8888_aa99de428bd3e7715b73b335a5af9e900.html#aa99de428bd3e7715b73b335a5af9e900">A</a>(alpha) { }</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;};</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div><div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b222.html">  275</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structfabgl_1_1_r_g_b222.html">RGB222</a> {</div><div class="line"><a name="l00276"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b222_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">  276</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b222_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">R</a> : 2;  </div><div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b222_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">  277</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b222_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">G</a> : 2;  </div><div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b222_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">  278</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b222_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">B</a> : 2;  </div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;  <a class="code" href="structfabgl_1_1_r_g_b222.html">RGB222</a>() : <a class="code" href="structfabgl_1_1_r_g_b222_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">R</a>(0), <a class="code" href="structfabgl_1_1_r_g_b222_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">G</a>(0), <a class="code" href="structfabgl_1_1_r_g_b222_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">B</a>(0) { }</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;  <a class="code" href="structfabgl_1_1_r_g_b222.html">RGB222</a>(uint8_t red, uint8_t green, uint8_t blue) : <a class="code" href="structfabgl_1_1_r_g_b222_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">R</a>(red), <a class="code" href="structfabgl_1_1_r_g_b222_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">G</a>(green), <a class="code" href="structfabgl_1_1_r_g_b222_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">B</a>(blue) { }</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;  RGB222(RGB888 <span class="keyword">const</span> &amp; value);</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> lowBitOnly;  <span class="comment">// true= 8 colors, false 64 colors</span></div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;};</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> operator==(RGB222 <span class="keyword">const</span>&amp; lhs, RGB222 <span class="keyword">const</span>&amp; rhs)</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;{</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;  <span class="keywordflow">return</span> lhs.R == rhs.R &amp;&amp; lhs.G == rhs.G &amp;&amp; lhs.B == rhs.B;</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;}</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> operator!=(RGB222 <span class="keyword">const</span>&amp; lhs, RGB222 <span class="keyword">const</span>&amp; rhs)</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;{</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;  <span class="keywordflow">return</span> lhs.R != rhs.R || lhs.G != rhs.G || lhs.B == rhs.B;</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;}</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;</div><div class="line"><a name="l00305"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b_a2222.html">  305</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structfabgl_1_1_r_g_b_a2222.html">RGBA2222</a> {</div><div class="line"><a name="l00306"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b_a2222_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">  306</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b_a2222_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">R</a> : 2;  </div><div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b_a2222_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">  307</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b_a2222_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">G</a> : 2;  </div><div class="line"><a name="l00308"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b_a2222_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">  308</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b_a2222_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">B</a> : 2;  </div><div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="structfabgl_1_1_r_g_b_a2222_aa99de428bd3e7715b73b335a5af9e900.html#aa99de428bd3e7715b73b335a5af9e900">  309</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_r_g_b_a2222_aa99de428bd3e7715b73b335a5af9e900.html#aa99de428bd3e7715b73b335a5af9e900">A</a> : 2;  </div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;  <a class="code" href="structfabgl_1_1_r_g_b_a2222.html">RGBA2222</a>(<span class="keywordtype">int</span> red, <span class="keywordtype">int</span> green, <span class="keywordtype">int</span> blue, <span class="keywordtype">int</span> alpha) : <a class="code" href="structfabgl_1_1_r_g_b_a2222_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">R</a>(red), <a class="code" href="structfabgl_1_1_r_g_b_a2222_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">G</a>(green), <a class="code" href="structfabgl_1_1_r_g_b_a2222_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">B</a>(blue), <a class="code" href="structfabgl_1_1_r_g_b_a2222_aa99de428bd3e7715b73b335a5af9e900.html#aa99de428bd3e7715b73b335a5af9e900">A</a>(alpha) { }</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;};</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;<span class="comment">//   0 .. 63  =&gt; 0</span></div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;<span class="comment">//  64 .. 127 =&gt; 1</span></div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;<span class="comment">// 128 .. 191 =&gt; 2</span></div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;<span class="comment">// 192 .. 255 =&gt; 3</span></div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;uint8_t RGB888toPackedRGB222(RGB888 <span class="keyword">const</span> &amp; rgb);</div><div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="displaycontroller_8h_aa6aba27bc1a89db9e350b50bbf881f57.html#aa6aba27bc1a89db9e350b50bbf881f57">  320</a></span>&#160;</div><div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="displaycontroller_8h_abe4637362df8e341470401813999dd17.html#abe4637362df8e341470401813999dd17">  321</a></span>&#160;</div><div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="displaycontroller_8h_a2656ee44feda5ea3cac87985700be97f.html#a2656ee44feda5ea3cac87985700be97f">  327</a></span>&#160;<span class="keyword">struct </span>Glyph {</div><div class="line"><a name="l00328"></a><span class="lineno"><a class="line" href="displaycontroller_8h_a89a44c5e986590e4eca4fb8649bba64e.html#a89a44c5e986590e4eca4fb8649bba64e">  328</a></span>&#160;  int16_t         <a class="code" href="structfabgl_1_1_glyph_aa6aba27bc1a89db9e350b50bbf881f57.html#aa6aba27bc1a89db9e350b50bbf881f57">X</a>;      </div><div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="displaycontroller_8h_adf5b991f529df52d907c00a061458857.html#adf5b991f529df52d907c00a061458857">  329</a></span>&#160;  int16_t         <a class="code" href="structfabgl_1_1_glyph_abe4637362df8e341470401813999dd17.html#abe4637362df8e341470401813999dd17">Y</a>;      </div><div class="line"><a name="l00330"></a><span class="lineno"><a class="line" href="displaycontroller_8h_a5ad74d5409163f1191ad4039b1447c26.html#a5ad74d5409163f1191ad4039b1447c26">  330</a></span>&#160;  uint8_t         <a class="code" href="structfabgl_1_1_glyph_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a>;  </div><div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="structfabgl_1_1_glyph_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">  331</a></span>&#160;  uint8_t         <a class="code" href="structfabgl_1_1_glyph_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a>; </div><div class="line"><a name="l00332"></a><span class="lineno"><a class="line" href="structfabgl_1_1_glyph_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">  332</a></span>&#160;  uint8_t <span class="keyword">const</span> * <a class="code" href="structfabgl_1_1_glyph_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a>;   </div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;  <a class="code" href="structfabgl_1_1_glyph.html">Glyph</a>() : <a class="code" href="structfabgl_1_1_glyph_aa6aba27bc1a89db9e350b50bbf881f57.html#aa6aba27bc1a89db9e350b50bbf881f57">X</a>(0), <a class="code" href="structfabgl_1_1_glyph_abe4637362df8e341470401813999dd17.html#abe4637362df8e341470401813999dd17">Y</a>(0), <a class="code" href="structfabgl_1_1_glyph_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a>(0), <a class="code" href="structfabgl_1_1_glyph_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a>(0), <a class="code" href="structfabgl_1_1_glyph_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a>(nullptr) { }</div><div class="line"><a name="l00335"></a><span class="lineno"><a class="line" href="displaycontroller_8h_a4054936031229707e9189e4f2c865e67.html#a4054936031229707e9189e4f2c865e67">  335</a></span>&#160;  Glyph(<span class="keywordtype">int</span> X_, <span class="keywordtype">int</span> Y_, <span class="keywordtype">int</span> width_, <span class="keywordtype">int</span> height_, uint8_t <span class="keyword">const</span> * data_) : <a class="code" href="structfabgl_1_1_glyph_aa6aba27bc1a89db9e350b50bbf881f57.html#aa6aba27bc1a89db9e350b50bbf881f57">X</a>(X_), <a class="code" href="structfabgl_1_1_glyph_abe4637362df8e341470401813999dd17.html#abe4637362df8e341470401813999dd17">Y</a>(Y_), <a class="code" href="structfabgl_1_1_glyph_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a>(width_), <a class="code" href="structfabgl_1_1_glyph_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a>(height_), <a class="code" href="structfabgl_1_1_glyph_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a>(data_) { }</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;}  __attribute__ ((packed));</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;</div><div class="line"><a name="l00338"></a><span class="lineno"><a class="line" href="displaycontroller_8h_ad03f06d4f3e36a9e80bd239d29fdb458.html#ad03f06d4f3e36a9e80bd239d29fdb458">  338</a></span>&#160;</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;</div><div class="line"><a name="l00343"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options.html">  343</a></span>&#160;<span class="keyword">union </span><a class="code" href="unionfabgl_1_1_glyph_options.html">GlyphOptions</a> {</div><div class="line"><a name="l00344"></a><span class="lineno"><a class="line" href="displaycontroller_8h_aa83a2188e3fe9edf5b07fd2fbe50b289.html#aa83a2188e3fe9edf5b07fd2fbe50b289">  344</a></span>&#160;  <span class="keyword">struct </span>{</div><div class="line"><a name="l00345"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_adcdb248e9afa3dc4557bd43f034365be.html#adcdb248e9afa3dc4557bd43f034365be">  345</a></span>&#160;    uint16_t <a class="code" href="unionfabgl_1_1_glyph_options_adcdb248e9afa3dc4557bd43f034365be.html#adcdb248e9afa3dc4557bd43f034365be">fillBackground</a>   : 1;  </div><div class="line"><a name="l00346"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_ae74e61e5ecb7b667173a7aa2a38f576a.html#ae74e61e5ecb7b667173a7aa2a38f576a">  346</a></span>&#160;    uint16_t <a class="code" href="unionfabgl_1_1_glyph_options_ae74e61e5ecb7b667173a7aa2a38f576a.html#ae74e61e5ecb7b667173a7aa2a38f576a">bold</a>             : 1;  </div><div class="line"><a name="l00347"></a><span class="lineno"><a class="line" href="displaycontroller_8h_aceea3df50e577272aa576027eede649d.html#aceea3df50e577272aa576027eede649d">  347</a></span>&#160;    uint16_t <a class="code" href="unionfabgl_1_1_glyph_options_a3b59c735745c810161faa9660ef88aac.html#a3b59c735745c810161faa9660ef88aac">reduceLuminosity</a> : 1;  </div><div class="line"><a name="l00348"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_ac653040b5d629ff1981c5802fc7d2b97.html#ac653040b5d629ff1981c5802fc7d2b97">  348</a></span>&#160;    uint16_t <a class="code" href="unionfabgl_1_1_glyph_options_ac653040b5d629ff1981c5802fc7d2b97.html#ac653040b5d629ff1981c5802fc7d2b97">italic</a>           : 1;  </div><div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_ad1fd85e7fdb3d255187062fce6511ae5.html#ad1fd85e7fdb3d255187062fce6511ae5">  349</a></span>&#160;    uint16_t <a class="code" href="unionfabgl_1_1_glyph_options_ad1fd85e7fdb3d255187062fce6511ae5.html#ad1fd85e7fdb3d255187062fce6511ae5">invert</a>           : 1;  </div><div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="displaycontroller_8h_a999881d9ade277b973d3064f113d71b9.html#a999881d9ade277b973d3064f113d71b9">  350</a></span>&#160;    uint16_t <a class="code" href="unionfabgl_1_1_glyph_options_a15e1f87cbc70601e7bb67d5e48f2f73d.html#a15e1f87cbc70601e7bb67d5e48f2f73d">blank</a>            : 1;  </div><div class="line"><a name="l00351"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_a2656ee44feda5ea3cac87985700be97f.html#a2656ee44feda5ea3cac87985700be97f">  351</a></span>&#160;    uint16_t <a class="code" href="unionfabgl_1_1_glyph_options_a2656ee44feda5ea3cac87985700be97f.html#a2656ee44feda5ea3cac87985700be97f">underline</a>        : 1;  </div><div class="line"><a name="l00352"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_a89a44c5e986590e4eca4fb8649bba64e.html#a89a44c5e986590e4eca4fb8649bba64e">  352</a></span>&#160;    uint16_t <a class="code" href="unionfabgl_1_1_glyph_options_a89a44c5e986590e4eca4fb8649bba64e.html#a89a44c5e986590e4eca4fb8649bba64e">doubleWidth</a>      : 2;  </div><div class="line"><a name="l00353"></a><span class="lineno"><a class="line" href="displaycontroller_8h_aeb1fc86856839744f17dbb757b3e8f0c.html#aeb1fc86856839744f17dbb757b3e8f0c">  353</a></span>&#160;    uint16_t <a class="code" href="unionfabgl_1_1_glyph_options_adf5b991f529df52d907c00a061458857.html#adf5b991f529df52d907c00a061458857">userOpt1</a>         : 1;  </div><div class="line"><a name="l00354"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_a5ad74d5409163f1191ad4039b1447c26.html#a5ad74d5409163f1191ad4039b1447c26">  354</a></span>&#160;    uint16_t <a class="code" href="unionfabgl_1_1_glyph_options_a5ad74d5409163f1191ad4039b1447c26.html#a5ad74d5409163f1191ad4039b1447c26">userOpt2</a>         : 1;  </div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;  };</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;  uint16_t value;</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;</div><div class="line"><a name="l00359"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_aa946869d35372eb428c67039ef29c754.html#aa946869d35372eb428c67039ef29c754">  359</a></span>&#160;  <a class="code" href="unionfabgl_1_1_glyph_options.html">GlyphOptions</a> &amp; <a class="code" href="unionfabgl_1_1_glyph_options_aa946869d35372eb428c67039ef29c754.html#aa946869d35372eb428c67039ef29c754">FillBackground</a>(<span class="keywordtype">bool</span> value) { <a class="code" href="unionfabgl_1_1_glyph_options_adcdb248e9afa3dc4557bd43f034365be.html#adcdb248e9afa3dc4557bd43f034365be">fillBackground</a> = value; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;</div><div class="line"><a name="l00362"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_adfa8c99739f7c4f7bc5e857f204ed5ce.html#adfa8c99739f7c4f7bc5e857f204ed5ce">  362</a></span>&#160;  <a class="code" href="unionfabgl_1_1_glyph_options.html">GlyphOptions</a> &amp; <a class="code" href="unionfabgl_1_1_glyph_options_adfa8c99739f7c4f7bc5e857f204ed5ce.html#adfa8c99739f7c4f7bc5e857f204ed5ce">Bold</a>(<span class="keywordtype">bool</span> value) { <a class="code" href="unionfabgl_1_1_glyph_options_ae74e61e5ecb7b667173a7aa2a38f576a.html#ae74e61e5ecb7b667173a7aa2a38f576a">bold</a> = value; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;</div><div class="line"><a name="l00365"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_a7e14f3c970df835ae878939c8f95cd3b.html#a7e14f3c970df835ae878939c8f95cd3b">  365</a></span>&#160;  <a class="code" href="unionfabgl_1_1_glyph_options.html">GlyphOptions</a> &amp; <a class="code" href="unionfabgl_1_1_glyph_options_a7e14f3c970df835ae878939c8f95cd3b.html#a7e14f3c970df835ae878939c8f95cd3b">Italic</a>(<span class="keywordtype">bool</span> value) { <a class="code" href="unionfabgl_1_1_glyph_options_ac653040b5d629ff1981c5802fc7d2b97.html#ac653040b5d629ff1981c5802fc7d2b97">italic</a> = value; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;</div><div class="line"><a name="l00368"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_a53fd6dae420a13b9871bc274f147ec8f.html#a53fd6dae420a13b9871bc274f147ec8f">  368</a></span>&#160;  <a class="code" href="unionfabgl_1_1_glyph_options.html">GlyphOptions</a> &amp; <a class="code" href="unionfabgl_1_1_glyph_options_a53fd6dae420a13b9871bc274f147ec8f.html#a53fd6dae420a13b9871bc274f147ec8f">Underline</a>(<span class="keywordtype">bool</span> value) { <a class="code" href="unionfabgl_1_1_glyph_options_a2656ee44feda5ea3cac87985700be97f.html#a2656ee44feda5ea3cac87985700be97f">underline</a> = value; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;</div><div class="line"><a name="l00371"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_ab0b8474f0db1a7826a6ac08bb269635c.html#ab0b8474f0db1a7826a6ac08bb269635c">  371</a></span>&#160;  <a class="code" href="unionfabgl_1_1_glyph_options.html">GlyphOptions</a> &amp; <a class="code" href="unionfabgl_1_1_glyph_options_ab0b8474f0db1a7826a6ac08bb269635c.html#ab0b8474f0db1a7826a6ac08bb269635c">DoubleWidth</a>(uint8_t value) { <a class="code" href="unionfabgl_1_1_glyph_options_a89a44c5e986590e4eca4fb8649bba64e.html#a89a44c5e986590e4eca4fb8649bba64e">doubleWidth</a> = value; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;</div><div class="line"><a name="l00374"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_a8ffa7a3e4760b3ecc48399c25cb37773.html#a8ffa7a3e4760b3ecc48399c25cb37773">  374</a></span>&#160;  <a class="code" href="unionfabgl_1_1_glyph_options.html">GlyphOptions</a> &amp; <a class="code" href="unionfabgl_1_1_glyph_options_a8ffa7a3e4760b3ecc48399c25cb37773.html#a8ffa7a3e4760b3ecc48399c25cb37773">Invert</a>(uint8_t value) { <a class="code" href="unionfabgl_1_1_glyph_options_ad1fd85e7fdb3d255187062fce6511ae5.html#ad1fd85e7fdb3d255187062fce6511ae5">invert</a> = value; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;</div><div class="line"><a name="l00377"></a><span class="lineno"><a class="line" href="unionfabgl_1_1_glyph_options_a1f5e1f916971680531d2bfe97fc251d5.html#a1f5e1f916971680531d2bfe97fc251d5">  377</a></span>&#160;  <a class="code" href="unionfabgl_1_1_glyph_options.html">GlyphOptions</a> &amp; <a class="code" href="unionfabgl_1_1_glyph_options_a1f5e1f916971680531d2bfe97fc251d5.html#a1f5e1f916971680531d2bfe97fc251d5">Blank</a>(uint8_t value) { <a class="code" href="unionfabgl_1_1_glyph_options_a15e1f87cbc70601e7bb67d5e48f2f73d.html#a15e1f87cbc70601e7bb67d5e48f2f73d">blank</a> = value; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;} __attribute__ ((packed));</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;</div><div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;</div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;<span class="comment">// GlyphsBuffer.map support functions</span></div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;<span class="comment">//  0 ..  7 : index</span></div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;<span class="comment">//  8 .. 11 : BG color (Color)</span></div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;<span class="comment">// 12 .. 15 : FG color (Color)</span></div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;<span class="comment">// 16 .. 31 : options (GlyphOptions)</span></div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;<span class="comment">// note: volatile pointer to avoid optimizer to get less than 32 bit from 32 bit access only memory</span></div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;<span class="preprocessor">#define GLYPHMAP_INDEX_BIT    0</span></div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;<span class="preprocessor">#define GLYPHMAP_BGCOLOR_BIT  8</span></div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;<span class="preprocessor">#define GLYPHMAP_FGCOLOR_BIT 12</span></div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;<span class="preprocessor">#define GLYPHMAP_OPTIONS_BIT 16</span></div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;<span class="preprocessor">#define GLYPHMAP_ITEM_MAKE(index, bgColor, fgColor, options) (((uint32_t)(index) &lt;&lt; GLYPHMAP_INDEX_BIT) | ((uint32_t)(bgColor) &lt;&lt; GLYPHMAP_BGCOLOR_BIT) | ((uint32_t)(fgColor) &lt;&lt; GLYPHMAP_FGCOLOR_BIT) | ((uint32_t)((options).value) &lt;&lt; GLYPHMAP_OPTIONS_BIT))</span></div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;<span class="keyword">inline</span> uint8_t glyphMapItem_getIndex(uint32_t <span class="keyword">const</span> <span class="keyword">volatile</span> * mapItem) { <span class="keywordflow">return</span> *mapItem &gt;&gt; GLYPHMAP_INDEX_BIT &amp; 0xFF; }</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;<span class="keyword">inline</span> uint8_t glyphMapItem_getIndex(uint32_t <span class="keyword">const</span> &amp; mapItem)          { <span class="keywordflow">return</span> mapItem &gt;&gt; GLYPHMAP_INDEX_BIT &amp; 0xFF; }</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;</div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;<span class="keyword">inline</span> <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a> glyphMapItem_getBGColor(uint32_t <span class="keyword">const</span> <span class="keyword">volatile</span> * mapItem) { <span class="keywordflow">return</span> (<a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a>)(*mapItem &gt;&gt; GLYPHMAP_BGCOLOR_BIT &amp; 0x0F); }</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;<span class="keyword">inline</span> <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a> glyphMapItem_getBGColor(uint32_t <span class="keyword">const</span> &amp; mapItem)          { <span class="keywordflow">return</span> (<a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a>)(mapItem &gt;&gt; GLYPHMAP_BGCOLOR_BIT &amp; 0x0F); }</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;<span class="keyword">inline</span> <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a> glyphMapItem_getFGColor(uint32_t <span class="keyword">const</span> <span class="keyword">volatile</span> * mapItem) { <span class="keywordflow">return</span> (<a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a>)(*mapItem &gt;&gt; GLYPHMAP_FGCOLOR_BIT &amp; 0x0F); }</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;<span class="keyword">inline</span> <a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a> glyphMapItem_getFGColor(uint32_t <span class="keyword">const</span> &amp; mapItem)          { <span class="keywordflow">return</span> (<a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a>)(mapItem &gt;&gt; GLYPHMAP_FGCOLOR_BIT &amp; 0x0F); }</div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;</div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;<span class="keyword">inline</span> GlyphOptions glyphMapItem_getOptions(uint32_t <span class="keyword">const</span> <span class="keyword">volatile</span> * mapItem) { <span class="keywordflow">return</span> (GlyphOptions){.value = (uint16_t)(*mapItem &gt;&gt; GLYPHMAP_OPTIONS_BIT &amp; 0xFFFF)}; }</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;<span class="keyword">inline</span> GlyphOptions glyphMapItem_getOptions(uint32_t <span class="keyword">const</span> &amp; mapItem)          { <span class="keywordflow">return</span> (GlyphOptions){.value = (uint16_t)(mapItem &gt;&gt; GLYPHMAP_OPTIONS_BIT &amp; 0xFFFF)}; }</div><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> glyphMapItem_setOptions(uint32_t <span class="keyword">volatile</span> * mapItem, GlyphOptions <span class="keyword">const</span> &amp; options) { *mapItem = (*mapItem &amp; ~((uint32_t)0xFFFF &lt;&lt; GLYPHMAP_OPTIONS_BIT)) | ((uint32_t)(options.value) &lt;&lt; GLYPHMAP_OPTIONS_BIT); }</div><div class="line"><a name="l00407"></a><span class="lineno"><a class="line" href="displaycontroller_8h_ab4ebc0c75fafd0babcc5095e6b3765ee.html#ab4ebc0c75fafd0babcc5095e6b3765ee">  407</a></span>&#160;</div><div class="line"><a name="l00408"></a><span class="lineno"><a class="line" href="displaycontroller_8h_a5802f48a4a51260d01324a9a46c4d840.html#a5802f48a4a51260d01324a9a46c4d840">  408</a></span>&#160;<span class="keyword">struct </span>GlyphsBuffer {</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;  int16_t         glyphsWidth;</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;  int16_t         glyphsHeight;</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;  uint8_t <span class="keyword">const</span> * glyphsData;</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;  int16_t         columns;</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;  int16_t         rows;</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;  uint32_t *      map;  <span class="comment">// look at glyphMapItem_... inlined functions</span></div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;};</div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;</div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;<span class="keyword">struct </span>GlyphsBufferRenderInfo {</div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;  int16_t              itemX;  <span class="comment">// starts from 0</span></div><div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;  int16_t              itemY;  <span class="comment">// starts from 0</span></div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;  GlyphsBuffer <span class="keyword">const</span> * glyphsBuffer;</div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;  GlyphsBufferRenderInfo(<span class="keywordtype">int</span> itemX_, <span class="keywordtype">int</span> itemY_, GlyphsBuffer <span class="keyword">const</span> * glyphsBuffer_) : itemX(itemX_), itemY(itemY_), glyphsBuffer(glyphsBuffer_) { }</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;} __attribute__ ((packed));</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;</div><div class="line"><a name="l00430"></a><span class="lineno"><a class="line" href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#ga03403b592cc00776d70bc5ad6c177276">  430</a></span>&#160;<span class="keyword">enum class</span> <a class="code" href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#ga03403b592cc00776d70bc5ad6c177276">NativePixelFormat</a> : uint8_t {</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;  <a class="code" href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276a5d9b47bd3b65072e0d5daf55f01da086">Mono</a>,       </div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;  <a class="code" href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276a0727ac3bf47006f125ad171d6ca18184">SBGR2222</a>,   </div><div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;  <a class="code" href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276af5b6b419fa27f5fa080c74870b404358">RGB565BE</a>,   </div><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;  <a class="code" href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276ab4b9dd494783e3c156b72596ce15ff17">PALETTE2</a>,   </div><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;  <a class="code" href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276a3ad9f499f52bd79815ec9efb1c0a11ad">PALETTE4</a>,   </div><div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;  <a class="code" href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276a2c2e91aa769aa411b0db57883d167601">PALETTE8</a>,   </div><div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;  <a class="code" href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276a2305a7e1bcc1d10f990698ed574363ac">PALETTE16</a>,  </div><div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;};</div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;</div><div class="line"><a name="l00444"></a><span class="lineno"><a class="line" href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#gafe919d7a7aeba256337f0fc494cf7221">  444</a></span>&#160;<span class="keyword">enum class</span> <a class="code" href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#gafe919d7a7aeba256337f0fc494cf7221">PixelFormat</a> : uint8_t {</div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;  <a class="code" href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#ggafe919d7a7aeba256337f0fc494cf7221aec0fc0100c4fc1ce4eea230c3dc10360">Undefined</a>,  </div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;  <a class="code" href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#ggafe919d7a7aeba256337f0fc494cf7221a925641e0b76c28cc940e8f3ca178d826">Native</a>,     </div><div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;  <a class="code" href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#ggafe919d7a7aeba256337f0fc494cf7221a4a18312b5b75f549d5551e5912ad6ebf">Mask</a>,       </div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;  <a class="code" href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#ggafe919d7a7aeba256337f0fc494cf7221ab24d28cf12130dc2957866674bc65ff7">RGBA2222</a>,   </div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;  <a class="code" href="structfabgl_1_1_r_g_b_a8888.html">RGBA8888</a>    </div><div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;};</div><div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;</div><div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;</div><div class="line"><a name="l00456"></a><span class="lineno"><a class="line" href="group___enumerations_ga8ac9813c9c9df8a1e7f6ec66b346f08e.html#ga8ac9813c9c9df8a1e7f6ec66b346f08e">  456</a></span>&#160;<span class="keyword">enum class</span> <a class="code" href="group___enumerations_ga8ac9813c9c9df8a1e7f6ec66b346f08e.html#ga8ac9813c9c9df8a1e7f6ec66b346f08e">LineEnds</a> : uint8_t {</div><div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;  <a class="code" href="group___enumerations_ga8ac9813c9c9df8a1e7f6ec66b346f08e.html#gga8ac9813c9c9df8a1e7f6ec66b346f08ea6adf97f83acf6453d4a6a4b1070f3754">None</a>,    </div><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;  <a class="code" href="group___enumerations_ga8ac9813c9c9df8a1e7f6ec66b346f08e.html#gga8ac9813c9c9df8a1e7f6ec66b346f08ea30954d90085f6eaaf5817917fc5fecb3">Circle</a>,  </div><div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;};</div><div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;</div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;</div><div class="line"><a name="l00465"></a><span class="lineno"><a class="line" href="structfabgl_1_1_bitmap.html">  465</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a> {</div><div class="line"><a name="l00466"></a><span class="lineno"><a class="line" href="structfabgl_1_1_bitmap_ae0ffb42440f0305b6d22a1c6106b6e6f.html#ae0ffb42440f0305b6d22a1c6106b6e6f">  466</a></span>&#160;  int16_t         <a class="code" href="structfabgl_1_1_bitmap_ae0ffb42440f0305b6d22a1c6106b6e6f.html#ae0ffb42440f0305b6d22a1c6106b6e6f">width</a>;           </div><div class="line"><a name="l00467"></a><span class="lineno"><a class="line" href="structfabgl_1_1_bitmap_a777dd66f9609a587ee98ad50de301662.html#a777dd66f9609a587ee98ad50de301662">  467</a></span>&#160;  int16_t         <a class="code" href="structfabgl_1_1_bitmap_a777dd66f9609a587ee98ad50de301662.html#a777dd66f9609a587ee98ad50de301662">height</a>;          </div><div class="line"><a name="l00468"></a><span class="lineno"><a class="line" href="structfabgl_1_1_bitmap_a66a9a92335243033aaf7ac4bd401f78f.html#a66a9a92335243033aaf7ac4bd401f78f">  468</a></span>&#160;  <a class="code" href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#gafe919d7a7aeba256337f0fc494cf7221">PixelFormat</a>     <a class="code" href="structfabgl_1_1_bitmap_a66a9a92335243033aaf7ac4bd401f78f.html#a66a9a92335243033aaf7ac4bd401f78f">format</a>;          </div><div class="line"><a name="l00469"></a><span class="lineno"><a class="line" href="structfabgl_1_1_bitmap_a40bc2241c1ab98232e200c5d492a68b0.html#a40bc2241c1ab98232e200c5d492a68b0">  469</a></span>&#160;  <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a>          <a class="code" href="structfabgl_1_1_bitmap_a40bc2241c1ab98232e200c5d492a68b0.html#a40bc2241c1ab98232e200c5d492a68b0">foregroundColor</a>; </div><div class="line"><a name="l00470"></a><span class="lineno"><a class="line" href="structfabgl_1_1_bitmap_abe222f6d3581e7920dcad5306cc906a8.html#abe222f6d3581e7920dcad5306cc906a8">  470</a></span>&#160;  uint8_t *       <a class="code" href="structfabgl_1_1_bitmap_abe222f6d3581e7920dcad5306cc906a8.html#abe222f6d3581e7920dcad5306cc906a8">data</a>;            </div><div class="line"><a name="l00471"></a><span class="lineno"><a class="line" href="structfabgl_1_1_bitmap_a655d553e67e161e0952ce91663de4cd1.html#a655d553e67e161e0952ce91663de4cd1">  471</a></span>&#160;  <span class="keywordtype">bool</span>            <a class="code" href="structfabgl_1_1_bitmap_a655d553e67e161e0952ce91663de4cd1.html#a655d553e67e161e0952ce91663de4cd1">dataAllocated</a>;   </div><div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;  <a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a>() : <a class="code" href="structfabgl_1_1_bitmap_ae0ffb42440f0305b6d22a1c6106b6e6f.html#ae0ffb42440f0305b6d22a1c6106b6e6f">width</a>(0), <a class="code" href="structfabgl_1_1_bitmap_a777dd66f9609a587ee98ad50de301662.html#a777dd66f9609a587ee98ad50de301662">height</a>(0), <a class="code" href="structfabgl_1_1_bitmap_a66a9a92335243033aaf7ac4bd401f78f.html#a66a9a92335243033aaf7ac4bd401f78f">format</a>(<a class="code" href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#gafe919d7a7aeba256337f0fc494cf7221">PixelFormat</a>::<a class="code" href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#ggafe919d7a7aeba256337f0fc494cf7221aec0fc0100c4fc1ce4eea230c3dc10360">Undefined</a>), <a class="code" href="structfabgl_1_1_bitmap_a40bc2241c1ab98232e200c5d492a68b0.html#a40bc2241c1ab98232e200c5d492a68b0">foregroundColor</a>(<a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a>(255, 255, 255)), <a class="code" href="structfabgl_1_1_bitmap_abe222f6d3581e7920dcad5306cc906a8.html#abe222f6d3581e7920dcad5306cc906a8">data</a>(nullptr), <a class="code" href="structfabgl_1_1_bitmap_a655d553e67e161e0952ce91663de4cd1.html#a655d553e67e161e0952ce91663de4cd1">dataAllocated</a>(false) { }</div><div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;  <a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a>(<span class="keywordtype">int</span> width_, <span class="keywordtype">int</span> height_, <span class="keywordtype">void</span> <span class="keyword">const</span> * data_, <a class="code" href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#gafe919d7a7aeba256337f0fc494cf7221">PixelFormat</a> format_, <span class="keywordtype">bool</span> copy = <span class="keyword">false</span>);</div><div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;  <a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a>(<span class="keywordtype">int</span> width_, <span class="keywordtype">int</span> height_, <span class="keywordtype">void</span> <span class="keyword">const</span> * data_, <a class="code" href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#gafe919d7a7aeba256337f0fc494cf7221">PixelFormat</a> format_, <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> foregroundColor_, <span class="keywordtype">bool</span> copy = <span class="keyword">false</span>);</div><div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;  ~<a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a>();</div><div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;</div><div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;  <span class="keywordtype">void</span> setPixel(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> value);       <span class="comment">// use with PixelFormat::Mask. value can be 0 or not 0</span></div><div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;  <span class="keywordtype">void</span> setPixel(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <a class="code" href="structfabgl_1_1_r_g_b_a2222.html">RGBA2222</a> value);  <span class="comment">// use with PixelFormat::RGBA2222</span></div><div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;  <span class="keywordtype">void</span> setPixel(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <a class="code" href="structfabgl_1_1_r_g_b_a8888.html">RGBA8888</a> value);  <span class="comment">// use with PixelFormat::RGBA8888</span></div><div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;</div><div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;  <span class="keywordtype">int</span> getAlpha(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);</div><div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;</div><div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;  <span class="keywordtype">void</span> allocate();</div><div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;  <span class="keywordtype">void</span> copyFrom(<span class="keywordtype">void</span> <span class="keyword">const</span> * srcData);</div><div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;};</div><div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;</div><div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;</div><div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;<span class="keyword">struct </span>BitmapDrawingInfo {</div><div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;  int16_t        <a class="code" href="displaycontroller_8h_aa6aba27bc1a89db9e350b50bbf881f57.html#aa6aba27bc1a89db9e350b50bbf881f57">X</a>;</div><div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;  int16_t        <a class="code" href="displaycontroller_8h_abe4637362df8e341470401813999dd17.html#abe4637362df8e341470401813999dd17">Y</a>;</div><div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;  Bitmap <span class="keyword">const</span> * bitmap;</div><div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;</div><div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;  BitmapDrawingInfo(<span class="keywordtype">int</span> X_, <span class="keywordtype">int</span> Y_, Bitmap <span class="keyword">const</span> * bitmap_) : <a class="code" href="displaycontroller_8h_aa6aba27bc1a89db9e350b50bbf881f57.html#aa6aba27bc1a89db9e350b50bbf881f57">X</a>(X_), <a class="code" href="displaycontroller_8h_abe4637362df8e341470401813999dd17.html#abe4637362df8e341470401813999dd17">Y</a>(Y_), bitmap(bitmap_) { }</div><div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;} __attribute__ ((packed));</div><div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;</div><div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;</div><div class="line"><a name="l00502"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#gab91da6221ce0fc3b24f077fb4b775b2c">  502</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#gab91da6221ce0fc3b24f077fb4b775b2c">CursorName</a> : uint8_t {</div><div class="line"><a name="l00503"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca8735e294bdeda83cc90c87d3f01f6994">  503</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca8735e294bdeda83cc90c87d3f01f6994">CursorPointerAmigaLike</a>,     </div><div class="line"><a name="l00504"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca48a1b84c118c385ab6d4e9f60b4e8e8c">  504</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca48a1b84c118c385ab6d4e9f60b4e8e8c">CursorPointerSimpleReduced</a>, </div><div class="line"><a name="l00505"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2caafeb160f7eb8c279e71a6d34425acdc5">  505</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2caafeb160f7eb8c279e71a6d34425acdc5">CursorPointerSimple</a>,        </div><div class="line"><a name="l00506"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca72c99523fd0e4d6808031972184261f2">  506</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca72c99523fd0e4d6808031972184261f2">CursorPointerShadowed</a>,      </div><div class="line"><a name="l00507"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2caf0dc99bddf44dd2b1a8293b730bad118">  507</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2caf0dc99bddf44dd2b1a8293b730bad118">CursorPointer</a>,              </div><div class="line"><a name="l00508"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca26497f04b56ab5720eb99f433df6268b">  508</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca26497f04b56ab5720eb99f433df6268b">CursorPen</a>,                  </div><div class="line"><a name="l00509"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca6309aeddcd8a7ed63f801b56866294ee">  509</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca6309aeddcd8a7ed63f801b56866294ee">CursorCross1</a>,               </div><div class="line"><a name="l00510"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2caad568b79e2d62bfb331e014e3008a9b1">  510</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2caad568b79e2d62bfb331e014e3008a9b1">CursorCross2</a>,               </div><div class="line"><a name="l00511"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca9a2987c94b00a09366636fcce41efb50">  511</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca9a2987c94b00a09366636fcce41efb50">CursorPoint</a>,                </div><div class="line"><a name="l00512"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca2a197f20333c10e91bd245a5528b1738">  512</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca2a197f20333c10e91bd245a5528b1738">CursorLeftArrow</a>,            </div><div class="line"><a name="l00513"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2cae396000d9b30b372b1f810eaa7da04c8">  513</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2cae396000d9b30b372b1f810eaa7da04c8">CursorRightArrow</a>,           </div><div class="line"><a name="l00514"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca2b9b0a88c05502b6af6b5dde7fc070ad">  514</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca2b9b0a88c05502b6af6b5dde7fc070ad">CursorDownArrow</a>,            </div><div class="line"><a name="l00515"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca55dd9cf4d48685689645caee1974ebf3">  515</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca55dd9cf4d48685689645caee1974ebf3">CursorUpArrow</a>,              </div><div class="line"><a name="l00516"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca56642684b6b35eadff43459770259a74">  516</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca56642684b6b35eadff43459770259a74">CursorMove</a>,                 </div><div class="line"><a name="l00517"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2cafa266b61a072ee1f788be3703f8e0190">  517</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2cafa266b61a072ee1f788be3703f8e0190">CursorResize1</a>,              </div><div class="line"><a name="l00518"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca160d0c1e0dd66bff97bce95fd5bb3c4b">  518</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca160d0c1e0dd66bff97bce95fd5bb3c4b">CursorResize2</a>,              </div><div class="line"><a name="l00519"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca05bd88f57b86497034de4d73b861f299">  519</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca05bd88f57b86497034de4d73b861f299">CursorResize3</a>,              </div><div class="line"><a name="l00520"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca6f1f3363f90f1b8b6080d8e61f1053a0">  520</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca6f1f3363f90f1b8b6080d8e61f1053a0">CursorResize4</a>,              </div><div class="line"><a name="l00521"></a><span class="lineno"><a class="line" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca3ad2b2df091b8c2e3afa27bdcbb47eb6">  521</a></span>&#160;  <a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca3ad2b2df091b8c2e3afa27bdcbb47eb6">CursorTextInput</a>,            </div><div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;};</div><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;</div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;</div><div class="line"><a name="l00528"></a><span class="lineno"><a class="line" href="structfabgl_1_1_cursor.html">  528</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structfabgl_1_1_cursor.html">Cursor</a> {</div><div class="line"><a name="l00529"></a><span class="lineno"><a class="line" href="structfabgl_1_1_cursor_a0e4f59780867e7453248d317439cc16e.html#a0e4f59780867e7453248d317439cc16e">  529</a></span>&#160;  int16_t <a class="code" href="structfabgl_1_1_cursor_a0e4f59780867e7453248d317439cc16e.html#a0e4f59780867e7453248d317439cc16e">hotspotX</a>;           </div><div class="line"><a name="l00530"></a><span class="lineno"><a class="line" href="structfabgl_1_1_cursor_a068b9d6ed14249ac8d20123435be5356.html#a068b9d6ed14249ac8d20123435be5356">  530</a></span>&#160;  int16_t <a class="code" href="structfabgl_1_1_cursor_a068b9d6ed14249ac8d20123435be5356.html#a068b9d6ed14249ac8d20123435be5356">hotspotY</a>;           </div><div class="line"><a name="l00531"></a><span class="lineno"><a class="line" href="structfabgl_1_1_cursor_ab90f53fbe007c65f80d83ece2352f49a.html#ab90f53fbe007c65f80d83ece2352f49a">  531</a></span>&#160;  <a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a>  <a class="code" href="structfabgl_1_1_cursor_ab90f53fbe007c65f80d83ece2352f49a.html#ab90f53fbe007c65f80d83ece2352f49a">bitmap</a>;             </div><div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;};</div><div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;</div><div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;</div><div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;<span class="keyword">struct </span>QuadTreeObject;</div><div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;</div><div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;</div><div class="line"><a name="l00546"></a><span class="lineno"><a class="line" href="structfabgl_1_1_sprite.html">  546</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structfabgl_1_1_sprite.html">Sprite</a> {</div><div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;  <span class="keyword">volatile</span> int16_t   x;</div><div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;  <span class="keyword">volatile</span> int16_t   y;</div><div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;  <a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a> * *         frames;  <span class="comment">// array of pointer to Bitmap</span></div><div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;  int16_t            framesCount;</div><div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;  int16_t            currentFrame;</div><div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;  int16_t            savedX;</div><div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;  int16_t            savedY;</div><div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;  int16_t            savedBackgroundWidth;</div><div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;  int16_t            savedBackgroundHeight;</div><div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;  uint8_t *          savedBackground;</div><div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;  QuadTreeObject *   collisionDetectorObject;</div><div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;  <span class="keyword">struct </span>{</div><div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;    uint8_t visible:  1;</div><div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;    <span class="comment">// A static sprite should be positioned before dynamic sprites.</span></div><div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;    <span class="comment">// It is never re-rendered unless allowDraw is 1. Static sprites always sets allowDraw=0 after drawings.</span></div><div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;    uint8_t isStatic:  1;</div><div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;    <span class="comment">// This is always &#39;1&#39; for dynamic sprites and always &#39;0&#39; for static sprites.</span></div><div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;    uint8_t allowDraw: 1;</div><div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;  };</div><div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;</div><div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;  <a class="code" href="structfabgl_1_1_sprite.html">Sprite</a>();</div><div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;  ~<a class="code" href="structfabgl_1_1_sprite.html">Sprite</a>();</div><div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;  <a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a> * getFrame() { <span class="keywordflow">return</span> frames ? frames[currentFrame] : <span class="keyword">nullptr</span>; }</div><div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;  <span class="keywordtype">int</span> getFrameIndex() { <span class="keywordflow">return</span> currentFrame; }</div><div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;  <span class="keywordtype">void</span> nextFrame() { ++currentFrame; <span class="keywordflow">if</span> (currentFrame &gt;= framesCount) currentFrame = 0; }</div><div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;  <a class="code" href="structfabgl_1_1_sprite.html">Sprite</a> * setFrame(<span class="keywordtype">int</span> frame) { currentFrame = frame; <span class="keywordflow">return</span> <span class="keyword">this</span>; }</div><div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;  <a class="code" href="structfabgl_1_1_sprite.html">Sprite</a> * addBitmap(<a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a> * bitmap);</div><div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;  <a class="code" href="structfabgl_1_1_sprite.html">Sprite</a> * addBitmap(<a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a> * bitmap[], <span class="keywordtype">int</span> count);</div><div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;  <span class="keywordtype">void</span> clearBitmaps();</div><div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;  <span class="keywordtype">int</span> getWidth()  { <span class="keywordflow">return</span> frames[currentFrame]-&gt;<a class="code" href="structfabgl_1_1_bitmap_ae0ffb42440f0305b6d22a1c6106b6e6f.html#ae0ffb42440f0305b6d22a1c6106b6e6f">width</a>; }</div><div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;  <span class="keywordtype">int</span> getHeight() { <span class="keywordflow">return</span> frames[currentFrame]-&gt;<a class="code" href="structfabgl_1_1_bitmap_a777dd66f9609a587ee98ad50de301662.html#a777dd66f9609a587ee98ad50de301662">height</a>; }</div><div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;  <a class="code" href="structfabgl_1_1_sprite.html">Sprite</a> * moveBy(<span class="keywordtype">int</span> offsetX, <span class="keywordtype">int</span> offsetY);</div><div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;  <a class="code" href="structfabgl_1_1_sprite.html">Sprite</a> * moveBy(<span class="keywordtype">int</span> offsetX, <span class="keywordtype">int</span> offsetY, <span class="keywordtype">int</span> wrapAroundWidth, <span class="keywordtype">int</span> wrapAroundHeight);</div><div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;  <a class="code" href="structfabgl_1_1_sprite.html">Sprite</a> * moveTo(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);</div><div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;};</div><div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;</div><div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;</div><div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;<span class="keyword">struct </span>Path {</div><div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;  <a class="code" href="structfabgl_1_1_point.html">Point</a> <span class="keyword">const</span> * points;</div><div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;  <span class="keywordtype">int</span>           pointsCount;</div><div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;  <span class="keywordtype">bool</span>          freePoints; <span class="comment">// deallocate points after drawing</span></div><div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;} __attribute__ ((packed));</div><div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;</div><div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;</div><div class="line"><a name="l00594"></a><span class="lineno"><a class="line" href="structfabgl_1_1_paint_options.html">  594</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structfabgl_1_1_paint_options.html">PaintOptions</a> {</div><div class="line"><a name="l00595"></a><span class="lineno"><a class="line" href="structfabgl_1_1_paint_options_ab4ebc0c75fafd0babcc5095e6b3765ee.html#ab4ebc0c75fafd0babcc5095e6b3765ee">  595</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_paint_options_ab4ebc0c75fafd0babcc5095e6b3765ee.html#ab4ebc0c75fafd0babcc5095e6b3765ee">swapFGBG</a> : 1;  </div><div class="line"><a name="l00596"></a><span class="lineno"><a class="line" href="structfabgl_1_1_paint_options_a5802f48a4a51260d01324a9a46c4d840.html#a5802f48a4a51260d01324a9a46c4d840">  596</a></span>&#160;  uint8_t <a class="code" href="structfabgl_1_1_paint_options_a5802f48a4a51260d01324a9a46c4d840.html#a5802f48a4a51260d01324a9a46c4d840">NOT</a>      : 1;  </div><div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;  <a class="code" href="structfabgl_1_1_paint_options.html">PaintOptions</a>() : <a class="code" href="structfabgl_1_1_paint_options_ab4ebc0c75fafd0babcc5095e6b3765ee.html#ab4ebc0c75fafd0babcc5095e6b3765ee">swapFGBG</a>(false), <a class="code" href="structfabgl_1_1_paint_options_a5802f48a4a51260d01324a9a46c4d840.html#a5802f48a4a51260d01324a9a46c4d840">NOT</a>(false) { }</div><div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;} __attribute__ ((packed));</div><div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;</div><div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;</div><div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;<span class="keyword">struct </span>PixelDesc {</div><div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;  Point  pos;</div><div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;  RGB888 color;</div><div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;} __attribute__ ((packed));</div><div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;</div><div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;</div><div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;<span class="keyword">struct </span>Primitive {</div><div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;  PrimitiveCmd cmd;</div><div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;  <span class="keyword">union </span>{</div><div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;    int16_t                ivalue;</div><div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;    RGB888                 color;</div><div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;    Point                  position;</div><div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;    Size                   size;</div><div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;    Glyph                  glyph;</div><div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;    Rect                   rect;</div><div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;    GlyphOptions           glyphOptions;</div><div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;    PaintOptions           paintOptions;</div><div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;    GlyphsBufferRenderInfo glyphsBufferRenderInfo;</div><div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;    BitmapDrawingInfo      bitmapDrawingInfo;</div><div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;    Path                   path;</div><div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;    PixelDesc              pixelDesc;</div><div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;    <a class="code" href="group___enumerations_ga8ac9813c9c9df8a1e7f6ec66b346f08e.html#ga8ac9813c9c9df8a1e7f6ec66b346f08e">LineEnds</a>               lineEnds;</div><div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;    TaskHandle_t           notifyTask;</div><div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;  } __attribute__ ((packed));</div><div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;</div><div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;  Primitive() { }</div><div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;  Primitive(PrimitiveCmd cmd_) : cmd(cmd_) { }</div><div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;  Primitive(PrimitiveCmd cmd_, Rect <span class="keyword">const</span> &amp; rect_) : cmd(cmd_), rect(rect_) { }</div><div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;} __attribute__ ((packed));</div><div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;</div><div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;</div><div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;<span class="keyword">struct </span>PaintState {</div><div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;  RGB888       penColor;</div><div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;  RGB888       brushColor;</div><div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;  Point        position;        <span class="comment">// value already traslated to &quot;origin&quot;</span></div><div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;  GlyphOptions glyphOptions;</div><div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;  PaintOptions paintOptions;</div><div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;  Rect         scrollingRegion;</div><div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;  Point        origin;</div><div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;  Rect         clippingRect;    <span class="comment">// relative clipping rectangle</span></div><div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;  Rect         absClippingRect; <span class="comment">// actual absolute clipping rectangle (calculated when setting &quot;origin&quot; or &quot;clippingRect&quot;)</span></div><div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;  int16_t      penWidth;</div><div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;  <a class="code" href="group___enumerations_ga8ac9813c9c9df8a1e7f6ec66b346f08e.html#ga8ac9813c9c9df8a1e7f6ec66b346f08e">LineEnds</a>     lineEnds;</div><div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;};</div><div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;</div><div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;</div><div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;</div><div class="line"><a name="l00652"></a><span class="lineno"><a class="line" href="group___enumerations_gadb8147abda8588ce7306a700532148e1.html#gadb8147abda8588ce7306a700532148e1">  652</a></span>&#160;<span class="keyword">enum class</span> <a class="code" href="group___enumerations_gadb8147abda8588ce7306a700532148e1.html#gadb8147abda8588ce7306a700532148e1">DisplayControllerType</a> {</div><div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;  <a class="code" href="group___enumerations_gadb8147abda8588ce7306a700532148e1.html#ggadb8147abda8588ce7306a700532148e1aa2fb9a703d274288448da0270a1eeb1a">Textual</a>,      </div><div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;  <a class="code" href="group___enumerations_gadb8147abda8588ce7306a700532148e1.html#ggadb8147abda8588ce7306a700532148e1a11b133271f0260621154f094888bd83e">Bitmapped</a>,    </div><div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;};</div><div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;</div><div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;</div><div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;</div><div class="line"><a name="l00662"></a><span class="lineno"><a class="line" href="classfabgl_1_1_base_display_controller.html">  662</a></span>&#160;<span class="keyword">class </span><a class="code" href="classfabgl_1_1_base_display_controller.html">BaseDisplayController</a> {</div><div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;</div><div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;</div><div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> setResolution(<span class="keywordtype">char</span> <span class="keyword">const</span> * modeline, <span class="keywordtype">int</span> viewPortWidth = -1, <span class="keywordtype">int</span> viewPortHeight = -1, <span class="keywordtype">bool</span> doubleBuffered = <span class="keyword">false</span>) = 0;</div><div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;</div><div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> begin() = 0;</div><div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;</div><div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="group___enumerations_gadb8147abda8588ce7306a700532148e1.html#gadb8147abda8588ce7306a700532148e1">DisplayControllerType</a> <a class="code" href="classfabgl_1_1_base_display_controller_aa4e745f41c133010dbc7f6f599aa74a2.html#aa4e745f41c133010dbc7f6f599aa74a2">controllerType</a>() = 0;</div><div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;</div><div class="line"><a name="l00682"></a><span class="lineno"><a class="line" href="classfabgl_1_1_base_display_controller_a749df909b39fd096bf6e2813f2f5324c.html#a749df909b39fd096bf6e2813f2f5324c">  682</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_base_display_controller_a749df909b39fd096bf6e2813f2f5324c.html#a749df909b39fd096bf6e2813f2f5324c">getScreenWidth</a>()                         { <span class="keywordflow">return</span> m_screenWidth; }</div><div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;</div><div class="line"><a name="l00689"></a><span class="lineno"><a class="line" href="classfabgl_1_1_base_display_controller_a0872427e4a351bb3590e8d00096e9cba.html#a0872427e4a351bb3590e8d00096e9cba">  689</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_base_display_controller_a0872427e4a351bb3590e8d00096e9cba.html#a0872427e4a351bb3590e8d00096e9cba">getScreenHeight</a>()                        { <span class="keywordflow">return</span> m_screenHeight; }</div><div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;</div><div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;</div><div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;  <span class="comment">// inherited classes should call setScreenSize once display size is known</span></div><div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;  <span class="keywordtype">void</span> setScreenSize(<span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a>, <span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a>)    { m_screenWidth = <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a>; m_screenHeight = <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a>; }</div><div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;</div><div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;</div><div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;  <span class="comment">// we store here these info to avoid to have virtual methods (due the -vtables in flash- problem)</span></div><div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;  int16_t m_screenWidth;</div><div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;  int16_t m_screenHeight;</div><div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;};</div><div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;</div><div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;</div><div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;</div><div class="line"><a name="l00708"></a><span class="lineno"><a class="line" href="classfabgl_1_1_textual_display_controller.html">  708</a></span>&#160;<span class="keyword">class </span><a class="code" href="classfabgl_1_1_textual_display_controller.html">TextualDisplayController</a> : <span class="keyword">public</span> <a class="code" href="classfabgl_1_1_base_display_controller.html">BaseDisplayController</a> {</div><div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;</div><div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;</div><div class="line"><a name="l00712"></a><span class="lineno"><a class="line" href="classfabgl_1_1_textual_display_controller_a2337a67770ebd18e0ced22ba40d79d24.html#a2337a67770ebd18e0ced22ba40d79d24">  712</a></span>&#160;    <a class="code" href="group___enumerations_gadb8147abda8588ce7306a700532148e1.html#gadb8147abda8588ce7306a700532148e1">DisplayControllerType</a> <a class="code" href="classfabgl_1_1_textual_display_controller_a2337a67770ebd18e0ced22ba40d79d24.html#a2337a67770ebd18e0ced22ba40d79d24">controllerType</a>() { <span class="keywordflow">return</span> <a class="code" href="group___enumerations_gadb8147abda8588ce7306a700532148e1.html#ggadb8147abda8588ce7306a700532148e1aa2fb9a703d274288448da0270a1eeb1a">DisplayControllerType::Textual</a>; }</div><div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;</div><div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> getColumns() = 0;</div><div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> getRows() = 0;</div><div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> adjustMapSize(<span class="keywordtype">int</span> * columns, <span class="keywordtype">int</span> * rows) = 0;</div><div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> setTextMap(uint32_t <span class="keyword">const</span> * map, <span class="keywordtype">int</span> rows) = 0;</div><div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> enableCursor(<span class="keywordtype">bool</span> value) = 0;</div><div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> setCursorPos(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col) = 0;      <span class="comment">// row and col starts from 0</span></div><div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> setCursorForeground(<a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a> value) = 0;</div><div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> setCursorBackground(<a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a> value) = 0;</div><div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;    <span class="keyword">virtual</span> FontInfo <span class="keyword">const</span> * getFont() = 0;</div><div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;};</div><div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;</div><div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;</div><div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;</div><div class="line"><a name="l00730"></a><span class="lineno"><a class="line" href="classfabgl_1_1_bitmapped_display_controller.html">  730</a></span>&#160;<span class="keyword">class </span><a class="code" href="classfabgl_1_1_bitmapped_display_controller.html">BitmappedDisplayController</a> : <span class="keyword">public</span> <a class="code" href="classfabgl_1_1_base_display_controller.html">BaseDisplayController</a> {</div><div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;</div><div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;</div><div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;  <a class="code" href="classfabgl_1_1_bitmapped_display_controller.html">BitmappedDisplayController</a>();</div><div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;  <span class="keyword">virtual</span> ~<a class="code" href="classfabgl_1_1_bitmapped_display_controller.html">BitmappedDisplayController</a>();</div><div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;</div><div class="line"><a name="l00737"></a><span class="lineno"><a class="line" href="classfabgl_1_1_bitmapped_display_controller_a2337a67770ebd18e0ced22ba40d79d24.html#a2337a67770ebd18e0ced22ba40d79d24">  737</a></span>&#160;  <a class="code" href="group___enumerations_gadb8147abda8588ce7306a700532148e1.html#gadb8147abda8588ce7306a700532148e1">DisplayControllerType</a> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a2337a67770ebd18e0ced22ba40d79d24.html#a2337a67770ebd18e0ced22ba40d79d24">controllerType</a>() { <span class="keywordflow">return</span> <a class="code" href="group___enumerations_gadb8147abda8588ce7306a700532148e1.html#ggadb8147abda8588ce7306a700532148e1a11b133271f0260621154f094888bd83e">DisplayControllerType::Bitmapped</a>; }</div><div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;</div><div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a9274060e33708f97a1d77ca37f7bf0a8.html#a9274060e33708f97a1d77ca37f7bf0a8">getViewPortWidth</a>() = 0;</div><div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;</div><div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_ada5f99a696a06cbd96b2b86d1e78878a.html#ada5f99a696a06cbd96b2b86d1e78878a">getViewPortHeight</a>() = 0;</div><div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;</div><div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#ga03403b592cc00776d70bc5ad6c177276">NativePixelFormat</a> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_adc1527381cd987281396cd3d894b73b1.html#adc1527381cd987281396cd3d894b73b1">nativePixelFormat</a>() = 0;</div><div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;</div><div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;  PaintState &amp; paintState() { <span class="keywordflow">return</span> m_paintState; }</div><div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;</div><div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;  <span class="keywordtype">void</span> addPrimitive(Primitive &amp; primitive);</div><div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;</div><div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;  <span class="keywordtype">void</span> primitivesExecutionWait();</div><div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;</div><div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_abd0898e61591117a7b8dce2fa4b4c4d4.html#abd0898e61591117a7b8dce2fa4b4c4d4">enableBackgroundPrimitiveExecution</a>(<span class="keywordtype">bool</span> value);</div><div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;</div><div class="line"><a name="l00786"></a><span class="lineno"><a class="line" href="classfabgl_1_1_bitmapped_display_controller_a1a03e74ed2fb8e2af22e7fd0454ae828.html#a1a03e74ed2fb8e2af22e7fd0454ae828">  786</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a1a03e74ed2fb8e2af22e7fd0454ae828.html#a1a03e74ed2fb8e2af22e7fd0454ae828">enableBackgroundPrimitiveTimeout</a>(<span class="keywordtype">bool</span> value) { m_backgroundPrimitiveTimeoutEnabled = value; }</div><div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;</div><div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;  <span class="keywordtype">bool</span> backgroundPrimitiveTimeoutEnabled()          { <span class="keywordflow">return</span> m_backgroundPrimitiveTimeoutEnabled; }</div><div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;</div><div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a5ccd64740850569f8c59d7c83c7590c4.html#a5ccd64740850569f8c59d7c83c7590c4">suspendBackgroundPrimitiveExecution</a>() = 0;</div><div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;</div><div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a5e5288dfa4b4cdcb9380711da9fa1e65.html#a5e5288dfa4b4cdcb9380711da9fa1e65">resumeBackgroundPrimitiveExecution</a>() = 0;</div><div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;</div><div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a94887c6019244300620e71d52e61a554.html#a94887c6019244300620e71d52e61a554">processPrimitives</a>();</div><div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;</div><div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00839"></a><span class="lineno"><a class="line" href="classfabgl_1_1_bitmapped_display_controller_a75ba732cc6ae90f53757b588f6c75d7e.html#a75ba732cc6ae90f53757b588f6c75d7e">  839</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a75ba732cc6ae90f53757b588f6c75d7e.html#a75ba732cc6ae90f53757b588f6c75d7e">setSprites</a>(T * sprites, <span class="keywordtype">int</span> count) {</div><div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;    <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a75ba732cc6ae90f53757b588f6c75d7e.html#a75ba732cc6ae90f53757b588f6c75d7e">setSprites</a>(sprites, count, <span class="keyword">sizeof</span>(T));</div><div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;  }</div><div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;</div><div class="line"><a name="l00848"></a><span class="lineno"><a class="line" href="classfabgl_1_1_bitmapped_display_controller_ad968eec19f2e3663a5431b96894636df.html#ad968eec19f2e3663a5431b96894636df">  848</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_ad968eec19f2e3663a5431b96894636df.html#ad968eec19f2e3663a5431b96894636df">removeSprites</a>() { <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a75ba732cc6ae90f53757b588f6c75d7e.html#a75ba732cc6ae90f53757b588f6c75d7e">setSprites</a>(<span class="keyword">nullptr</span>, 0, 0); }</div><div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;</div><div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_aeb689cfc2364a4d66e3ac3368146c70d.html#aeb689cfc2364a4d66e3ac3368146c70d">refreshSprites</a>();</div><div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;</div><div class="line"><a name="l00865"></a><span class="lineno"><a class="line" href="classfabgl_1_1_bitmapped_display_controller_a37da1545d5037b279fbb10c622121427.html#a37da1545d5037b279fbb10c622121427">  865</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a37da1545d5037b279fbb10c622121427.html#a37da1545d5037b279fbb10c622121427">isDoubleBuffered</a>() { <span class="keywordflow">return</span> m_doubleBuffered; }</div><div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;</div><div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a94fd39f8c9245ed51545f9dd6ce7f6ee.html#a94fd39f8c9245ed51545f9dd6ce7f6ee">setMouseCursor</a>(<a class="code" href="structfabgl_1_1_cursor.html">Cursor</a> * cursor);</div><div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;</div><div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a94fd39f8c9245ed51545f9dd6ce7f6ee.html#a94fd39f8c9245ed51545f9dd6ce7f6ee">setMouseCursor</a>(<a class="code" href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#gab91da6221ce0fc3b24f077fb4b775b2c">CursorName</a> cursorName);</div><div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;</div><div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_ae0897f2355f7462b5ab003083418e3b4.html#ae0897f2355f7462b5ab003083418e3b4">setMouseCursorPos</a>(<span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_aa6aba27bc1a89db9e350b50bbf881f57.html#aa6aba27bc1a89db9e350b50bbf881f57">X</a>, <span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_abe4637362df8e341470401813999dd17.html#abe4637362df8e341470401813999dd17">Y</a>);</div><div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;</div><div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> readScreen(<a class="code" href="structfabgl_1_1_rect.html">Rect</a> <span class="keyword">const</span> &amp; rect, <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> * destBuf) = 0;</div><div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;</div><div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;</div><div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;  <span class="comment">// statics (used for common default properties)</span></div><div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;</div><div class="line"><a name="l00905"></a><span class="lineno"><a class="line" href="classfabgl_1_1_bitmapped_display_controller_a6b94fdf3692083a41291eec4920c62d2.html#a6b94fdf3692083a41291eec4920c62d2">  905</a></span>&#160;  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a6b94fdf3692083a41291eec4920c62d2.html#a6b94fdf3692083a41291eec4920c62d2">queueSize</a>;</div><div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;</div><div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;</div><div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;</div><div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;</div><div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPixelAt(PixelDesc <span class="keyword">const</span> &amp; pixelDesc, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect) = 0;</div><div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;</div><div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> absDrawLine(<span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>, <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> color) = 0;</div><div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;</div><div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> rawFillRow(<span class="keywordtype">int</span> y, <span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> x2, <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> color) = 0;</div><div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160;</div><div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawEllipse(<a class="code" href="structfabgl_1_1_size.html">Size</a> <span class="keyword">const</span> &amp; size, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect) = 0;</div><div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;</div><div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> clear(<a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect) = 0;</div><div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;</div><div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> VScroll(<span class="keywordtype">int</span> scroll, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect) = 0;</div><div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;</div><div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> HScroll(<span class="keywordtype">int</span> scroll, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect) = 0;</div><div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;</div><div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawGlyph(<a class="code" href="structfabgl_1_1_glyph.html">Glyph</a> <span class="keyword">const</span> &amp; glyph, <a class="code" href="unionfabgl_1_1_glyph_options.html">GlyphOptions</a> glyphOptions, <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> penColor, <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> brushColor, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect) = 0;</div><div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;</div><div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> invertRect(<a class="code" href="structfabgl_1_1_rect.html">Rect</a> <span class="keyword">const</span> &amp; rect, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect) = 0;</div><div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;</div><div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> swapFGBG(<a class="code" href="structfabgl_1_1_rect.html">Rect</a> <span class="keyword">const</span> &amp; rect, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect) = 0;</div><div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;</div><div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> copyRect(<a class="code" href="structfabgl_1_1_rect.html">Rect</a> <span class="keyword">const</span> &amp; source, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect) = 0;</div><div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;</div><div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> swapBuffers() = 0;</div><div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;</div><div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">int</span> getBitmapSavePixelSize() = 0;</div><div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;</div><div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> rawDrawBitmap_Native(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, <a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a> <span class="keyword">const</span> * bitmap, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> XCount, <span class="keywordtype">int</span> YCount) = 0;</div><div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;</div><div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> rawDrawBitmap_Mask(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, <a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a> <span class="keyword">const</span> * bitmap, <span class="keywordtype">void</span> * saveBackground, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> XCount, <span class="keywordtype">int</span> YCount) = 0;</div><div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;</div><div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> rawDrawBitmap_RGBA2222(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, <a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a> <span class="keyword">const</span> * bitmap, <span class="keywordtype">void</span> * saveBackground, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> XCount, <span class="keywordtype">int</span> YCount) = 0;</div><div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;</div><div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> rawDrawBitmap_RGBA8888(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, <a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a> <span class="keyword">const</span> * bitmap, <span class="keywordtype">void</span> * saveBackground, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> XCount, <span class="keywordtype">int</span> YCount) = 0;</div><div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;</div><div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160;</div><div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;  <span class="keywordtype">void</span> execPrimitive(Primitive <span class="keyword">const</span> &amp; prim, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect, <span class="keywordtype">bool</span> insideISR);</div><div class="line"><a name="l00949"></a><span class="lineno">  949</span>&#160;</div><div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160;  <span class="keywordtype">void</span> updateAbsoluteClippingRect();</div><div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;</div><div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160;  <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> getActualPenColor();</div><div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;</div><div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;  <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> getActualBrushColor();</div><div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;</div><div class="line"><a name="l00956"></a><span class="lineno">  956</span>&#160;  <span class="keywordtype">void</span> lineTo(<a class="code" href="structfabgl_1_1_point.html">Point</a> <span class="keyword">const</span> &amp; position, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect);</div><div class="line"><a name="l00957"></a><span class="lineno">  957</span>&#160;</div><div class="line"><a name="l00958"></a><span class="lineno">  958</span>&#160;  <span class="keywordtype">void</span> drawRect(<a class="code" href="structfabgl_1_1_rect.html">Rect</a> <span class="keyword">const</span> &amp; rect, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect);</div><div class="line"><a name="l00959"></a><span class="lineno">  959</span>&#160;</div><div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;  <span class="keywordtype">void</span> drawPath(Path <span class="keyword">const</span> &amp; path, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect);</div><div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160;</div><div class="line"><a name="l00962"></a><span class="lineno">  962</span>&#160;  <span class="keywordtype">void</span> absDrawThickLine(<span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>, <span class="keywordtype">int</span> penWidth, <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> <span class="keyword">const</span> &amp; color);</div><div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;</div><div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;  <span class="keywordtype">void</span> fillRect(<a class="code" href="structfabgl_1_1_rect.html">Rect</a> <span class="keyword">const</span> &amp; rect, <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> <span class="keyword">const</span> &amp; color, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect);</div><div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160;</div><div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160;  <span class="keywordtype">void</span> fillEllipse(<span class="keywordtype">int</span> centerX, <span class="keywordtype">int</span> centerY, <a class="code" href="structfabgl_1_1_size.html">Size</a> <span class="keyword">const</span> &amp; size, <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> <span class="keyword">const</span> &amp; color, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect);</div><div class="line"><a name="l00967"></a><span class="lineno">  967</span>&#160;</div><div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;  <span class="keywordtype">void</span> fillPath(Path <span class="keyword">const</span> &amp; path, <a class="code" href="structfabgl_1_1_r_g_b888.html">RGB888</a> <span class="keyword">const</span> &amp; color, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect);</div><div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;</div><div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;  <span class="keywordtype">void</span> renderGlyphsBuffer(GlyphsBufferRenderInfo <span class="keyword">const</span> &amp; glyphsBufferRenderInfo, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect);</div><div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160;</div><div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a75ba732cc6ae90f53757b588f6c75d7e.html#a75ba732cc6ae90f53757b588f6c75d7e">setSprites</a>(<a class="code" href="structfabgl_1_1_sprite.html">Sprite</a> * sprites, <span class="keywordtype">int</span> count, <span class="keywordtype">int</span> spriteSize);</div><div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160;</div><div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160;  <a class="code" href="structfabgl_1_1_sprite.html">Sprite</a> * getSprite(<span class="keywordtype">int</span> index);</div><div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;</div><div class="line"><a name="l00976"></a><span class="lineno">  976</span>&#160;  <span class="keywordtype">int</span> spritesCount() { <span class="keywordflow">return</span> m_spritesCount; }</div><div class="line"><a name="l00977"></a><span class="lineno">  977</span>&#160;</div><div class="line"><a name="l00978"></a><span class="lineno">  978</span>&#160;  <span class="keywordtype">void</span> hideSprites(<a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect);</div><div class="line"><a name="l00979"></a><span class="lineno">  979</span>&#160;</div><div class="line"><a name="l00980"></a><span class="lineno">  980</span>&#160;  <span class="keywordtype">void</span> showSprites(<a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect);</div><div class="line"><a name="l00981"></a><span class="lineno">  981</span>&#160;</div><div class="line"><a name="l00982"></a><span class="lineno">  982</span>&#160;  <span class="keywordtype">void</span> drawBitmap(BitmapDrawingInfo <span class="keyword">const</span> &amp; bitmapDrawingInfo, <a class="code" href="structfabgl_1_1_rect.html">Rect</a> &amp; updateRect);</div><div class="line"><a name="l00983"></a><span class="lineno">  983</span>&#160;</div><div class="line"><a name="l00984"></a><span class="lineno">  984</span>&#160;  <span class="keywordtype">void</span> absDrawBitmap(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, <a class="code" href="structfabgl_1_1_bitmap.html">Bitmap</a> <span class="keyword">const</span> * bitmap, <span class="keywordtype">void</span> * saveBackground, <span class="keywordtype">bool</span> ignoreClippingRect);</div><div class="line"><a name="l00985"></a><span class="lineno">  985</span>&#160;</div><div class="line"><a name="l00986"></a><span class="lineno">  986</span>&#160;  <span class="keywordtype">void</span> setDoubleBuffered(<span class="keywordtype">bool</span> value);</div><div class="line"><a name="l00987"></a><span class="lineno">  987</span>&#160;</div><div class="line"><a name="l00988"></a><span class="lineno">  988</span>&#160;  <span class="keywordtype">bool</span> getPrimitive(Primitive * primitive, <span class="keywordtype">int</span> timeOutMS = 0);</div><div class="line"><a name="l00989"></a><span class="lineno">  989</span>&#160;</div><div class="line"><a name="l00990"></a><span class="lineno">  990</span>&#160;  <span class="keywordtype">bool</span> getPrimitiveISR(Primitive * primitive);</div><div class="line"><a name="l00991"></a><span class="lineno">  991</span>&#160;</div><div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;  <span class="keywordtype">void</span> waitForPrimitives();</div><div class="line"><a name="l00993"></a><span class="lineno">  993</span>&#160;</div><div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;  <a class="code" href="structfabgl_1_1_sprite.html">Sprite</a> * mouseCursor() { <span class="keywordflow">return</span> &amp;m_mouseCursor; }</div><div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;</div><div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;  <span class="keywordtype">void</span> resetPaintState();</div><div class="line"><a name="l00997"></a><span class="lineno">  997</span>&#160;</div><div class="line"><a name="l00998"></a><span class="lineno">  998</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00999"></a><span class="lineno">  999</span>&#160;</div><div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>&#160;  <span class="keywordtype">void</span> primitiveReplaceDynamicBuffers(Primitive &amp; primitive);</div><div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>&#160;</div><div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>&#160;</div><div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>&#160;  PaintState             m_paintState;</div><div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>&#160;</div><div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>&#160;  <span class="keyword">volatile</span> <span class="keywordtype">bool</span>          m_doubleBuffered;</div><div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>&#160;  <span class="keyword">volatile</span> QueueHandle_t m_execQueue;</div><div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>&#160;</div><div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>&#160;  <span class="keywordtype">bool</span>                   m_backgroundPrimitiveExecutionEnabled; <span class="comment">// when False primitives are execute immediately</span></div><div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>&#160;  <span class="keyword">volatile</span> <span class="keywordtype">bool</span>          m_backgroundPrimitiveTimeoutEnabled;   <span class="comment">// when False VSyncInterrupt() has not timeout</span></div><div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>&#160;</div><div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>&#160;  <span class="keywordtype">void</span> *                 m_sprites;       <span class="comment">// pointer to array of sprite structures</span></div><div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>&#160;  <span class="keywordtype">int</span>                    m_spriteSize;    <span class="comment">// size of sprite structure</span></div><div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>&#160;  <span class="keywordtype">int</span>                    m_spritesCount;  <span class="comment">// number of sprites in m_sprites array</span></div><div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>&#160;  <span class="keywordtype">bool</span>                   m_spritesHidden; <span class="comment">// true between hideSprites() and showSprites()</span></div><div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>&#160;</div><div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>&#160;  <span class="comment">// mouse cursor (mouse pointer) support</span></div><div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>&#160;  Sprite                 m_mouseCursor;</div><div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>&#160;  int16_t                m_mouseHotspotX;</div><div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>&#160;  int16_t                m_mouseHotspotY;</div><div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>&#160;</div><div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;  <span class="comment">// memory pool used to allocate buffers of primitives</span></div><div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;  LightMemoryPool        m_primDynMemPool;</div><div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;</div><div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160;};</div><div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160;</div><div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>&#160;</div><div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>&#160;</div><div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>&#160;</div><div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>&#160;<span class="comment">// GenericBitmappedDisplayController</span></div><div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>&#160;</div><div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>&#160;</div><div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>&#160;<span class="keyword">class </span>GenericBitmappedDisplayController : <span class="keyword">public</span> BitmappedDisplayController {</div><div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>&#160;</div><div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>&#160;</div><div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>&#160;</div><div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TPreparePixel, <span class="keyword">typename</span> TRawSetPixel&gt;</div><div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>&#160;  <span class="keywordtype">void</span> genericSetPixelAt(PixelDesc <span class="keyword">const</span> &amp; pixelDesc, Rect &amp; updateRect, TPreparePixel preparePixel, TRawSetPixel rawSetPixel)</div><div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>&#160;  {</div><div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> x = pixelDesc.pos.X + paintState().origin.X;</div><div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> y = pixelDesc.pos.Y + paintState().origin.Y;</div><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>&#160;</div><div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX1 = paintState().absClippingRect.X1;</div><div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY1 = paintState().absClippingRect.Y1;</div><div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX2 = paintState().absClippingRect.X2;</div><div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY2 = paintState().absClippingRect.Y2;</div><div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>&#160;</div><div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>&#160;    <span class="keywordflow">if</span> (x &gt;= clipX1 &amp;&amp; x &lt;= clipX2 &amp;&amp; y &gt;= clipY1 &amp;&amp; y &lt;= clipY2) {</div><div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>&#160;      updateRect = updateRect.merge(Rect(x, y, x, y));</div><div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>&#160;      hideSprites(updateRect);</div><div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>&#160;      rawSetPixel(x, y, preparePixel(pixelDesc.color));</div><div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>&#160;    }</div><div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>&#160;  }</div><div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>&#160;</div><div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>&#160;</div><div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>&#160;  <span class="comment">// coordinates are absolute values (not relative to origin)</span></div><div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>&#160;  <span class="comment">// line clipped on current absolute clipping rectangle</span></div><div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TPreparePixel, <span class="keyword">typename</span> TRawFillRow, <span class="keyword">typename</span> TRawInvertRow, <span class="keyword">typename</span> TRawSetPixel, <span class="keyword">typename</span> TRawInvertPixel&gt;</div><div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>&#160;  <span class="keywordtype">void</span> genericAbsDrawLine(<span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>, RGB888 <span class="keyword">const</span> &amp; color, TPreparePixel preparePixel, TRawFillRow rawFillRow, TRawInvertRow rawInvertRow, TRawSetPixel rawSetPixel, TRawInvertPixel rawInvertPixel)</div><div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>&#160;  {</div><div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>&#160;    <span class="keywordflow">if</span> (paintState().penWidth &gt; 1) {</div><div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160;      absDrawThickLine(<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>, paintState().penWidth, color);</div><div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160;      <span class="keywordflow">return</span>;</div><div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>&#160;    }</div><div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>&#160;    <span class="keyword">auto</span> pattern = preparePixel(color);</div><div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> == <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>) {</div><div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>&#160;      <span class="comment">// horizontal line</span></div><div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> &lt; paintState().absClippingRect.Y1 || <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> &gt; paintState().absClippingRect.Y2)</div><div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> &gt; <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>)</div><div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>&#160;        tswap(<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>);</div><div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> &gt; paintState().absClippingRect.X2 || <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> &lt; paintState().absClippingRect.X1)</div><div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>&#160;      <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> = iclamp(<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, paintState().absClippingRect.X1, paintState().absClippingRect.X2);</div><div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>&#160;      <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> = iclamp(<a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, paintState().absClippingRect.X1, paintState().absClippingRect.X2);</div><div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>&#160;      <span class="keywordflow">if</span> (paintState().paintOptions.NOT)</div><div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>&#160;        rawInvertRow(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>);</div><div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>&#160;      <span class="keywordflow">else</span></div><div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>&#160;        rawFillRow(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, pattern);</div><div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> == <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>) {</div><div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160;      <span class="comment">// vertical line</span></div><div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> &lt; paintState().absClippingRect.X1 || <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> &gt; paintState().absClippingRect.X2)</div><div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> &gt; <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>)</div><div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>&#160;        tswap(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>);</div><div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> &gt; paintState().absClippingRect.Y2 || <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a> &lt; paintState().absClippingRect.Y1)</div><div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>&#160;      <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> = iclamp(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, paintState().absClippingRect.Y1, paintState().absClippingRect.Y2);</div><div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>&#160;      <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a> = iclamp(<a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>, paintState().absClippingRect.Y1, paintState().absClippingRect.Y2);</div><div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>&#160;      <span class="keywordflow">if</span> (paintState().paintOptions.NOT) {</div><div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt;= <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>; ++y)</div><div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>&#160;          rawInvertPixel(<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, y);</div><div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>&#160;      } <span class="keywordflow">else</span> {</div><div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt;= <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>; ++y)</div><div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>&#160;          rawSetPixel(<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, y, pattern);</div><div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>&#160;      }</div><div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>&#160;      <span class="comment">// other cases (Bresenham&#39;s algorithm)</span></div><div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>&#160;      <span class="comment">// TODO: to optimize</span></div><div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>&#160;      <span class="comment">//   Unfortunately here we cannot clip exactly using Sutherland-Cohen algorithm (as done before)</span></div><div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>&#160;      <span class="comment">//   because the starting line (got from clipping algorithm) may not be the same of Bresenham&#39;s</span></div><div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>&#160;      <span class="comment">//   line (think to continuing an existing line).</span></div><div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>&#160;      <span class="comment">//   Possible solutions:</span></div><div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>&#160;      <span class="comment">//      - &quot;Yevgeny P. Kuzmin&quot; algorithm:</span></div><div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>&#160;      <span class="comment">//               https://stackoverflow.com/questions/40884680/how-to-use-bresenhams-line-drawing-algorithm-with-clipping</span></div><div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>&#160;      <span class="comment">//               https://github.com/ktfh/ClippedLine/blob/master/clip.hpp</span></div><div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>&#160;      <span class="comment">// For now Sutherland-Cohen algorithm is only used to check the line is actually visible,</span></div><div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>&#160;      <span class="comment">// then test for every point inside the main Bresenham&#39;s loop.</span></div><div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>&#160;      <span class="keywordflow">if</span> (!clipLine(<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>, paintState().absClippingRect, <span class="keyword">true</span>))  <span class="comment">// true = do not change line coordinates!</span></div><div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">int</span> dx = abs(<a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> - <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>);</div><div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">int</span> dy = abs(<a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a> - <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>);</div><div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">int</span> sx = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> &lt; <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> ? 1 : -1;</div><div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">int</span> sy = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> &lt; <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a> ? 1 : -1;</div><div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>&#160;      <span class="keywordtype">int</span> err = (dx &gt; dy ? dx : -dy) / 2;</div><div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>&#160;      <span class="keywordflow">while</span> (<span class="keyword">true</span>) {</div><div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>&#160;        <span class="keywordflow">if</span> (paintState().absClippingRect.contains(<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>)) {</div><div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>&#160;          <span class="keywordflow">if</span> (paintState().paintOptions.NOT)</div><div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>&#160;            rawInvertPixel(<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>);</div><div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>&#160;          <span class="keywordflow">else</span></div><div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>&#160;            rawSetPixel(<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, pattern);</div><div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>&#160;        }</div><div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> == <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> &amp;&amp; <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> == <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>)</div><div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>&#160;          <span class="keywordflow">break</span>;</div><div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>&#160;        <span class="keywordtype">int</span> e2 = err;</div><div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>&#160;        <span class="keywordflow">if</span> (e2 &gt; -dx) {</div><div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>&#160;          err -= dy;</div><div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>&#160;          <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> += sx;</div><div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>&#160;        }</div><div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>&#160;        <span class="keywordflow">if</span> (e2 &lt; dy) {</div><div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>&#160;          err += dx;</div><div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>&#160;          <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> += sy;</div><div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>&#160;        }</div><div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>&#160;      }</div><div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>&#160;    }</div><div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>&#160;  }</div><div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>&#160;</div><div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>&#160;</div><div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>&#160;  <span class="comment">// McIlroy&#39;s algorithm</span></div><div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TPreparePixel, <span class="keyword">typename</span> TRawSetPixel&gt;</div><div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>&#160;  <span class="keywordtype">void</span> genericDrawEllipse(Size <span class="keyword">const</span> &amp; size, Rect &amp; updateRect, TPreparePixel preparePixel, TRawSetPixel rawSetPixel)</div><div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>&#160;  {</div><div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>&#160;    <span class="keyword">auto</span> pattern = preparePixel(getActualPenColor());</div><div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>&#160;</div><div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX1 = paintState().absClippingRect.X1;</div><div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY1 = paintState().absClippingRect.Y1;</div><div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX2 = paintState().absClippingRect.X2;</div><div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY2 = paintState().absClippingRect.Y2;</div><div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>&#160;</div><div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> centerX = paintState().position.X;</div><div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> centerY = paintState().position.Y;</div><div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>&#160;</div><div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> halfWidth  = size.width / 2;</div><div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> halfHeight = size.height / 2;</div><div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>&#160;</div><div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>&#160;    updateRect = updateRect.merge(Rect(centerX - halfWidth, centerY - halfHeight, centerX + halfWidth, centerY + halfHeight));</div><div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>&#160;    hideSprites(updateRect);</div><div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>&#160;</div><div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> a2 = halfWidth * halfWidth;</div><div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> b2 = halfHeight * halfHeight;</div><div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> crit1 = -(a2 / 4 + halfWidth % 2 + b2);</div><div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> crit2 = -(b2 / 4 + halfHeight % 2 + a2);</div><div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> crit3 = -(b2 / 4 + halfHeight % 2);</div><div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> d2xt = 2 * b2;</div><div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> d2yt = 2 * a2;</div><div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>&#160;    <span class="keywordtype">int</span> x = 0;          <span class="comment">// travels from 0 up to halfWidth</span></div><div class="line"><a name="l01169"></a><span class="lineno"><a class="line" href="displaycontroller_8h_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f"> 1169</a></span>&#160;    <span class="keywordtype">int</span> y = halfHeight; <span class="comment">// travels from halfHeight down to 0</span></div><div class="line"><a name="l01170"></a><span class="lineno"><a class="line" href="displaycontroller_8h_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6"> 1170</a></span>&#160;    <span class="keywordtype">int</span> t = -a2 * y;</div><div class="line"><a name="l01171"></a><span class="lineno"><a class="line" href="displaycontroller_8h_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea"> 1171</a></span>&#160;    <span class="keywordtype">int</span> dxt = 2 * b2 * x;</div><div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>&#160;    <span class="keywordtype">int</span> dyt = -2 * a2 * y;</div><div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>&#160;</div><div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>&#160;    <span class="keywordflow">while</span> (y &gt;= 0 &amp;&amp; x &lt;= halfWidth) {</div><div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">int</span> col1 = centerX - x;</div><div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">int</span> col2 = centerX + x;</div><div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">int</span> row1 = centerY - y;</div><div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">int</span> row2 = centerY + y;</div><div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>&#160;</div><div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>&#160;      <span class="keywordflow">if</span> (col1 &gt;= clipX1 &amp;&amp; col1 &lt;= clipX2) {</div><div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>&#160;        <span class="keywordflow">if</span> (row1 &gt;= clipY1 &amp;&amp; row1 &lt;= clipY2)</div><div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>&#160;          rawSetPixel(col1, row1, pattern);</div><div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>&#160;        <span class="keywordflow">if</span> (row2 &gt;= clipY1 &amp;&amp; row2 &lt;= clipY2)</div><div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>&#160;          rawSetPixel(col1, row2, pattern);</div><div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>&#160;      }</div><div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>&#160;      <span class="keywordflow">if</span> (col2 &gt;= clipX1 &amp;&amp; col2 &lt;= clipX2) {</div><div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>&#160;        <span class="keywordflow">if</span> (row1 &gt;= clipY1 &amp;&amp; row1 &lt;= clipY2)</div><div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>&#160;          rawSetPixel(col2, row1, pattern);</div><div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>&#160;        <span class="keywordflow">if</span> (row2 &gt;= clipY1 &amp;&amp; row2 &lt;= clipY2)</div><div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>&#160;          rawSetPixel(col2, row2, pattern);</div><div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>&#160;      }</div><div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>&#160;</div><div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>&#160;      <span class="keywordflow">if</span> (t + b2 * x &lt;= crit1 || t + a2 * y &lt;= crit3) {</div><div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>&#160;        x++;</div><div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>&#160;        dxt += d2xt;</div><div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>&#160;        t += dxt;</div><div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>&#160;      } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (t - a2 * y &gt; crit2) {</div><div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>&#160;        y--;</div><div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>&#160;        dyt += d2yt;</div><div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>&#160;        t += dyt;</div><div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>&#160;      } <span class="keywordflow">else</span> {</div><div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>&#160;        x++;</div><div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>&#160;        dxt += d2xt;</div><div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>&#160;        t += dxt;</div><div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>&#160;        y--;</div><div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>&#160;        dyt += d2yt;</div><div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>&#160;        t += dyt;</div><div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>&#160;      }</div><div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>&#160;    }</div><div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>&#160;  }</div><div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>&#160;</div><div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>&#160;</div><div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TPreparePixel, <span class="keyword">typename</span> TRawGetRow, <span class="keyword">typename</span> TRawSetPixelInRow&gt;</div><div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>&#160;  <span class="keywordtype">void</span> genericDrawGlyph(Glyph <span class="keyword">const</span> &amp; glyph, GlyphOptions glyphOptions, RGB888 penColor, RGB888 brushColor, Rect &amp; updateRect, TPreparePixel preparePixel, TRawGetRow rawGetRow, TRawSetPixelInRow rawSetPixelInRow)</div><div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>&#160;  {</div><div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>&#160;    <span class="keywordflow">if</span> (!glyphOptions.bold &amp;&amp; !glyphOptions.italic &amp;&amp; !glyphOptions.blank &amp;&amp; !glyphOptions.underline &amp;&amp; !glyphOptions.doubleWidth &amp;&amp; glyph.width &lt;= 32)</div><div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>&#160;      genericDrawGlyph_light(glyph, glyphOptions, penColor, brushColor, updateRect, preparePixel, rawGetRow, rawSetPixelInRow);</div><div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>&#160;      genericDrawGlyph_full(glyph, glyphOptions, penColor, brushColor, updateRect, preparePixel, rawGetRow, rawSetPixelInRow);</div><div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>&#160;  }</div><div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>&#160;</div><div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>&#160;</div><div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>&#160;  <span class="comment">// TODO: Italic doesn&#39;t work well when clipping rect is specified</span></div><div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TPreparePixel, <span class="keyword">typename</span> TRawGetRow, <span class="keyword">typename</span> TRawSetPixelInRow&gt;</div><div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>&#160;  <span class="keywordtype">void</span> genericDrawGlyph_full(Glyph <span class="keyword">const</span> &amp; glyph, GlyphOptions glyphOptions, RGB888 penColor, RGB888 brushColor, Rect &amp; updateRect, TPreparePixel preparePixel, TRawGetRow rawGetRow, TRawSetPixelInRow rawSetPixelInRow)</div><div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>&#160;  {</div><div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX1 = paintState().absClippingRect.X1;</div><div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY1 = paintState().absClippingRect.Y1;</div><div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX2 = paintState().absClippingRect.X2;</div><div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY2 = paintState().absClippingRect.Y2;</div><div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>&#160;</div><div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> origX = paintState().origin.X;</div><div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> origY = paintState().origin.Y;</div><div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>&#160;</div><div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> glyphX = glyph.X + origX;</div><div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> glyphY = glyph.Y + origY;</div><div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>&#160;</div><div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>&#160;    <span class="keywordflow">if</span> (glyphX &gt; clipX2 || glyphY &gt; clipY2)</div><div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>&#160;      <span class="keywordflow">return</span>;</div><div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>&#160;</div><div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>&#160;    int16_t glyphWidth        = glyph.width;</div><div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>&#160;    int16_t glyphHeight       = glyph.height;</div><div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>&#160;    uint8_t <span class="keyword">const</span> * glyphData = glyph.data;</div><div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>&#160;    int16_t glyphWidthByte    = (glyphWidth + 7) / 8;</div><div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>&#160;    int16_t glyphSize         = glyphHeight * glyphWidthByte;</div><div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>&#160;</div><div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="displaycontroller_8h_adcdb248e9afa3dc4557bd43f034365be.html#adcdb248e9afa3dc4557bd43f034365be">fillBackground</a> = glyphOptions.fillBackground;</div><div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="displaycontroller_8h_ae74e61e5ecb7b667173a7aa2a38f576a.html#ae74e61e5ecb7b667173a7aa2a38f576a">bold</a>           = glyphOptions.bold;</div><div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="displaycontroller_8h_ac653040b5d629ff1981c5802fc7d2b97.html#ac653040b5d629ff1981c5802fc7d2b97">italic</a>         = glyphOptions.italic;</div><div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="displaycontroller_8h_a15e1f87cbc70601e7bb67d5e48f2f73d.html#a15e1f87cbc70601e7bb67d5e48f2f73d">blank</a>          = glyphOptions.blank;</div><div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="displaycontroller_8h_a2656ee44feda5ea3cac87985700be97f.html#a2656ee44feda5ea3cac87985700be97f">underline</a>      = glyphOptions.underline;</div><div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_a89a44c5e986590e4eca4fb8649bba64e.html#a89a44c5e986590e4eca4fb8649bba64e">doubleWidth</a>     = glyphOptions.doubleWidth;</div><div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>&#160;</div><div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>&#160;    <span class="comment">// modify glyph to handle top half and bottom half double height</span></div><div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>&#160;    <span class="comment">// doubleWidth = 1 is handled directly inside drawing routine</span></div><div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="displaycontroller_8h_a89a44c5e986590e4eca4fb8649bba64e.html#a89a44c5e986590e4eca4fb8649bba64e">doubleWidth</a> &gt; 1) {</div><div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>&#160;      uint8_t * newGlyphData = (uint8_t*) alloca(glyphSize);</div><div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>&#160;      <span class="comment">// doubling top-half or doubling bottom-half?</span></div><div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>&#160;      <span class="keywordtype">int</span> offset = (<a class="code" href="displaycontroller_8h_a89a44c5e986590e4eca4fb8649bba64e.html#a89a44c5e986590e4eca4fb8649bba64e">doubleWidth</a> == 2 ? 0 : (glyphHeight &gt;&gt; 1));</div><div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = 0; y &lt; glyphHeight ; ++y)</div><div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = 0; x &lt; glyphWidthByte; ++x)</div><div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>&#160;          newGlyphData[x + y * glyphWidthByte] = glyphData[x + (offset + (y &gt;&gt; 1)) * glyphWidthByte];</div><div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>&#160;      glyphData = newGlyphData;</div><div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>&#160;    }</div><div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>&#160;</div><div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>&#160;    <span class="comment">// a very simple and ugly skew (italic) implementation!</span></div><div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>&#160;    <span class="keywordtype">int</span> skewAdder = 0, skewH1 = 0, skewH2 = 0;</div><div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="displaycontroller_8h_ac653040b5d629ff1981c5802fc7d2b97.html#ac653040b5d629ff1981c5802fc7d2b97">italic</a>) {</div><div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>&#160;      skewAdder = 2;</div><div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>&#160;      skewH1 = glyphHeight / 3;</div><div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>&#160;      skewH2 = skewH1 * 2;</div><div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>&#160;    }</div><div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>&#160;</div><div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>&#160;    int16_t <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> = 0;</div><div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>&#160;    int16_t XCount = glyphWidth;</div><div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>&#160;    int16_t destX = glyphX;</div><div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>&#160;</div><div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>&#160;    <span class="keywordflow">if</span> (destX &lt; clipX1) {</div><div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>&#160;      <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> = (clipX1 - destX) / (<a class="code" href="displaycontroller_8h_a89a44c5e986590e4eca4fb8649bba64e.html#a89a44c5e986590e4eca4fb8649bba64e">doubleWidth</a> ? 2 : 1);</div><div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>&#160;      destX = clipX1;</div><div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>&#160;    }</div><div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> &gt;= glyphWidth)</div><div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>&#160;      <span class="keywordflow">return</span>;</div><div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>&#160;</div><div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>&#160;    <span class="keywordflow">if</span> (destX + XCount + skewAdder &gt; clipX2 + 1)</div><div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>&#160;      XCount = clipX2 + 1 - destX - skewAdder;</div><div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> + XCount &gt; glyphWidth)</div><div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>&#160;      XCount = glyphWidth - <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>;</div><div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>&#160;</div><div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>&#160;    int16_t <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> = 0;</div><div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>&#160;    int16_t YCount = glyphHeight;</div><div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>&#160;    <span class="keywordtype">int</span> destY = glyphY;</div><div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>&#160;</div><div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>&#160;    <span class="keywordflow">if</span> (destY &lt; clipY1) {</div><div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>&#160;      <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> = clipY1 - destY;</div><div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>&#160;      destY = clipY1;</div><div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>&#160;    }</div><div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> &gt;= glyphHeight)</div><div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>&#160;      <span class="keywordflow">return</span>;</div><div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>&#160;</div><div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>&#160;    <span class="keywordflow">if</span> (destY + YCount &gt; clipY2 + 1)</div><div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>&#160;      YCount = clipY2 + 1 - destY;</div><div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + YCount &gt; glyphHeight)</div><div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>&#160;      YCount = glyphHeight - <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>;</div><div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>&#160;</div><div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>&#160;    updateRect = updateRect.merge(Rect(destX, destY, destX + XCount + skewAdder - 1, destY + YCount - 1));</div><div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>&#160;    hideSprites(updateRect);</div><div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>&#160;</div><div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>&#160;    <span class="keywordflow">if</span> (glyphOptions.invert ^ paintState().paintOptions.swapFGBG)</div><div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>&#160;      tswap(penColor, brushColor);</div><div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>&#160;</div><div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>&#160;    <span class="comment">// a very simple and ugly reduce luminosity (faint) implementation!</span></div><div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>&#160;    <span class="keywordflow">if</span> (glyphOptions.reduceLuminosity) {</div><div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>&#160;      <span class="keywordflow">if</span> (penColor.R &gt; 128) penColor.R = 128;</div><div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>&#160;      <span class="keywordflow">if</span> (penColor.G &gt; 128) penColor.G = 128;</div><div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>&#160;      <span class="keywordflow">if</span> (penColor.B &gt; 128) penColor.B = 128;</div><div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>&#160;    }</div><div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>&#160;</div><div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>&#160;    <span class="keyword">auto</span> penPattern   = preparePixel(penColor);</div><div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>&#160;    <span class="keyword">auto</span> brushPattern = preparePixel(brushColor);</div><div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>&#160;    <span class="keyword">auto</span> boldPattern  = <a class="code" href="displaycontroller_8h_ae74e61e5ecb7b667173a7aa2a38f576a.html#ae74e61e5ecb7b667173a7aa2a38f576a">bold</a> ? preparePixel(RGB888(penColor.R / 2 + 1,</div><div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>&#160;                                                   penColor.G / 2 + 1,</div><div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>&#160;                                                   penColor.B / 2 + 1))</div><div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>&#160;                             : preparePixel(RGB888(0, 0, 0));</div><div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>&#160;</div><div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt; <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + YCount; ++y, ++destY) {</div><div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>&#160;</div><div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>&#160;      <span class="comment">// true if previous pixel has been set</span></div><div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>&#160;      <span class="keywordtype">bool</span> prevSet = <span class="keyword">false</span>;</div><div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>&#160;</div><div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>&#160;      <span class="keyword">auto</span> dstrow = rawGetRow(destY);</div><div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>&#160;      <span class="keyword">auto</span> srcrow = glyphData + y * glyphWidthByte;</div><div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>&#160;</div><div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="displaycontroller_8h_a2656ee44feda5ea3cac87985700be97f.html#a2656ee44feda5ea3cac87985700be97f">underline</a> &amp;&amp; y == glyphHeight - <a class="code" href="fabglconf_8h_a6d8d65c6f9d580f607cd2ff361955c00.html#a6d8d65c6f9d580f607cd2ff361955c00">FABGLIB_UNDERLINE_POSITION</a> - 1) {</div><div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>&#160;</div><div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, adestX = destX + skewAdder; x &lt; <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> + XCount &amp;&amp; adestX &lt;= clipX2; ++x, ++adestX) {</div><div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>&#160;          rawSetPixelInRow(dstrow, adestX, <a class="code" href="displaycontroller_8h_a15e1f87cbc70601e7bb67d5e48f2f73d.html#a15e1f87cbc70601e7bb67d5e48f2f73d">blank</a> ? brushPattern : penPattern);</div><div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>&#160;          <span class="keywordflow">if</span> (<a class="code" href="displaycontroller_8h_a89a44c5e986590e4eca4fb8649bba64e.html#a89a44c5e986590e4eca4fb8649bba64e">doubleWidth</a>) {</div><div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>&#160;            ++adestX;</div><div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>&#160;            <span class="keywordflow">if</span> (adestX &gt; clipX2)</div><div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>&#160;              <span class="keywordflow">break</span>;</div><div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>&#160;            rawSetPixelInRow(dstrow, adestX, <a class="code" href="displaycontroller_8h_a15e1f87cbc70601e7bb67d5e48f2f73d.html#a15e1f87cbc70601e7bb67d5e48f2f73d">blank</a> ? brushPattern : penPattern);</div><div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>&#160;          }</div><div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>&#160;        }</div><div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>&#160;</div><div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>&#160;      } <span class="keywordflow">else</span> {</div><div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>&#160;</div><div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, adestX = destX + skewAdder; x &lt; <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> + XCount &amp;&amp; adestX &lt;= clipX2; ++x, ++adestX) {</div><div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>&#160;          <span class="keywordflow">if</span> ((srcrow[x &gt;&gt; 3] &lt;&lt; (x &amp; 7)) &amp; 0x80 &amp;&amp; !<a class="code" href="displaycontroller_8h_a15e1f87cbc70601e7bb67d5e48f2f73d.html#a15e1f87cbc70601e7bb67d5e48f2f73d">blank</a>) {</div><div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>&#160;            rawSetPixelInRow(dstrow, adestX, penPattern);</div><div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>&#160;            prevSet = <span class="keyword">true</span>;</div><div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>&#160;          } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="displaycontroller_8h_ae74e61e5ecb7b667173a7aa2a38f576a.html#ae74e61e5ecb7b667173a7aa2a38f576a">bold</a> &amp;&amp; prevSet) {</div><div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>&#160;            rawSetPixelInRow(dstrow, adestX, boldPattern);</div><div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>&#160;            prevSet = <span class="keyword">false</span>;</div><div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>&#160;          } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="displaycontroller_8h_adcdb248e9afa3dc4557bd43f034365be.html#adcdb248e9afa3dc4557bd43f034365be">fillBackground</a>) {</div><div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>&#160;            rawSetPixelInRow(dstrow, adestX, brushPattern);</div><div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>&#160;            prevSet = <span class="keyword">false</span>;</div><div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>&#160;          } <span class="keywordflow">else</span> {</div><div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>&#160;            prevSet = <span class="keyword">false</span>;</div><div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>&#160;          }</div><div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>&#160;          <span class="keywordflow">if</span> (<a class="code" href="displaycontroller_8h_a89a44c5e986590e4eca4fb8649bba64e.html#a89a44c5e986590e4eca4fb8649bba64e">doubleWidth</a>) {</div><div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>&#160;            ++adestX;</div><div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>&#160;            <span class="keywordflow">if</span> (adestX &gt; clipX2)</div><div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>&#160;              <span class="keywordflow">break</span>;</div><div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="displaycontroller_8h_adcdb248e9afa3dc4557bd43f034365be.html#adcdb248e9afa3dc4557bd43f034365be">fillBackground</a>)</div><div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>&#160;              rawSetPixelInRow(dstrow, adestX, prevSet ? penPattern : brushPattern);</div><div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (prevSet)</div><div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>&#160;              rawSetPixelInRow(dstrow, adestX, penPattern);</div><div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>&#160;          }</div><div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>&#160;        }</div><div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>&#160;</div><div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>&#160;      }</div><div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>&#160;</div><div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="displaycontroller_8h_ac653040b5d629ff1981c5802fc7d2b97.html#ac653040b5d629ff1981c5802fc7d2b97">italic</a> &amp;&amp; (y == skewH1 || y == skewH2))</div><div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>&#160;        --skewAdder;</div><div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>&#160;</div><div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>&#160;    }</div><div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>&#160;  }</div><div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>&#160;</div><div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>&#160;</div><div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>&#160;  <span class="comment">// assume:</span></div><div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>&#160;  <span class="comment">//   glyph.width &lt;= 32</span></div><div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>&#160;  <span class="comment">//   glyphOptions.fillBackground = 0 or 1</span></div><div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>&#160;  <span class="comment">//   glyphOptions.invert : 0 or 1</span></div><div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>&#160;  <span class="comment">//   glyphOptions.reduceLuminosity: 0 or 1</span></div><div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>&#160;  <span class="comment">//   glyphOptions.... others = 0</span></div><div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>&#160;  <span class="comment">//   paintState().paintOptions.swapFGBG: 0 or 1</span></div><div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TPreparePixel, <span class="keyword">typename</span> TRawGetRow, <span class="keyword">typename</span> TRawSetPixelInRow&gt;</div><div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>&#160;  <span class="keywordtype">void</span> genericDrawGlyph_light(Glyph <span class="keyword">const</span> &amp; glyph, GlyphOptions glyphOptions, RGB888 penColor, RGB888 brushColor, Rect &amp; updateRect, TPreparePixel preparePixel, TRawGetRow rawGetRow, TRawSetPixelInRow rawSetPixelInRow)</div><div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>&#160;  {</div><div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX1 = paintState().absClippingRect.X1;</div><div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY1 = paintState().absClippingRect.Y1;</div><div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX2 = paintState().absClippingRect.X2;</div><div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY2 = paintState().absClippingRect.Y2;</div><div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>&#160;</div><div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> origX = paintState().origin.X;</div><div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> origY = paintState().origin.Y;</div><div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>&#160;</div><div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> glyphX = glyph.X + origX;</div><div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> glyphY = glyph.Y + origY;</div><div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>&#160;</div><div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>&#160;    <span class="keywordflow">if</span> (glyphX &gt; clipX2 || glyphY &gt; clipY2)</div><div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>&#160;      <span class="keywordflow">return</span>;</div><div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>&#160;</div><div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>&#160;    int16_t glyphWidth        = glyph.width;</div><div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>&#160;    int16_t glyphHeight       = glyph.height;</div><div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>&#160;    uint8_t <span class="keyword">const</span> * glyphData = glyph.data;</div><div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>&#160;    int16_t glyphWidthByte    = (glyphWidth + 7) / 8;</div><div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>&#160;</div><div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>&#160;    int16_t <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> = 0;</div><div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>&#160;    int16_t XCount = glyphWidth;</div><div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>&#160;    int16_t destX = glyphX;</div><div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>&#160;</div><div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>&#160;    int16_t <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> = 0;</div><div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>&#160;    int16_t YCount = glyphHeight;</div><div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>&#160;    <span class="keywordtype">int</span> destY = glyphY;</div><div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>&#160;</div><div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>&#160;    <span class="keywordflow">if</span> (destX &lt; clipX1) {</div><div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>&#160;      <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> = clipX1 - destX;</div><div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>&#160;      destX = clipX1;</div><div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>&#160;    }</div><div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> &gt;= glyphWidth)</div><div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>&#160;      <span class="keywordflow">return</span>;</div><div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>&#160;</div><div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>&#160;    <span class="keywordflow">if</span> (destX + XCount &gt; clipX2 + 1)</div><div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>&#160;      XCount = clipX2 + 1 - destX;</div><div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> + XCount &gt; glyphWidth)</div><div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>&#160;      XCount = glyphWidth - <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>;</div><div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>&#160;</div><div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>&#160;    <span class="keywordflow">if</span> (destY &lt; clipY1) {</div><div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>&#160;      <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> = clipY1 - destY;</div><div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>&#160;      destY = clipY1;</div><div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>&#160;    }</div><div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> &gt;= glyphHeight)</div><div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>&#160;      <span class="keywordflow">return</span>;</div><div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>&#160;</div><div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>&#160;    <span class="keywordflow">if</span> (destY + YCount &gt; clipY2 + 1)</div><div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>&#160;      YCount = clipY2 + 1 - destY;</div><div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + YCount &gt; glyphHeight)</div><div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>&#160;      YCount = glyphHeight - <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>;</div><div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>&#160;</div><div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>&#160;    updateRect = updateRect.merge(Rect(destX, destY, destX + XCount - 1, destY + YCount - 1));</div><div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>&#160;    hideSprites(updateRect);</div><div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>&#160;</div><div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>&#160;    <span class="keywordflow">if</span> (glyphOptions.invert ^ paintState().paintOptions.swapFGBG)</div><div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>&#160;      tswap(penColor, brushColor);</div><div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>&#160;</div><div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>&#160;    <span class="comment">// a very simple and ugly reduce luminosity (faint) implementation!</span></div><div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>&#160;    <span class="keywordflow">if</span> (glyphOptions.reduceLuminosity) {</div><div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>&#160;      <span class="keywordflow">if</span> (penColor.R &gt; 128) penColor.R = 128;</div><div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>&#160;      <span class="keywordflow">if</span> (penColor.G &gt; 128) penColor.G = 128;</div><div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>&#160;      <span class="keywordflow">if</span> (penColor.B &gt; 128) penColor.B = 128;</div><div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>&#160;    }</div><div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>&#160;</div><div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="displaycontroller_8h_adcdb248e9afa3dc4557bd43f034365be.html#adcdb248e9afa3dc4557bd43f034365be">fillBackground</a> = glyphOptions.fillBackground;</div><div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>&#160;</div><div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>&#160;    <span class="keyword">auto</span> penPattern   = preparePixel(penColor);</div><div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>&#160;    <span class="keyword">auto</span> brushPattern = preparePixel(brushColor);</div><div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>&#160;</div><div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt; <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + YCount; ++y, ++destY) {</div><div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>&#160;      <span class="keyword">auto</span> dstrow = rawGetRow(destY);</div><div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>&#160;      uint8_t <span class="keyword">const</span> * srcrow = glyphData + y * glyphWidthByte;</div><div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>&#160;</div><div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>&#160;      uint32_t src = (srcrow[0] &lt;&lt; 24) | (srcrow[1] &lt;&lt; 16) | (srcrow[2] &lt;&lt; 8) | (srcrow[3]);</div><div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>&#160;      src &lt;&lt;= <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>;</div><div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="displaycontroller_8h_adcdb248e9afa3dc4557bd43f034365be.html#adcdb248e9afa3dc4557bd43f034365be">fillBackground</a>) {</div><div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>&#160;        <span class="comment">// filled background</span></div><div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, adestX = destX; x &lt; <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> + XCount; ++x, ++adestX, src &lt;&lt;= 1)</div><div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>&#160;          rawSetPixelInRow(dstrow, adestX, src &amp; 0x80000000 ? penPattern : brushPattern);</div><div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>&#160;      } <span class="keywordflow">else</span> {</div><div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>&#160;        <span class="comment">// transparent background</span></div><div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, adestX = destX; x &lt; <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> + XCount; ++x, ++adestX, src &lt;&lt;= 1)</div><div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>&#160;          <span class="keywordflow">if</span> (src &amp; 0x80000000)</div><div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>&#160;            rawSetPixelInRow(dstrow, adestX, penPattern);</div><div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>&#160;      }</div><div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>&#160;    }</div><div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>&#160;  }</div><div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>&#160;</div><div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>&#160;</div><div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TRawInvertRow&gt;</div><div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>&#160;  <span class="keywordtype">void</span> genericInvertRect(Rect <span class="keyword">const</span> &amp; rect, Rect &amp; updateRect, TRawInvertRow rawInvertRow)</div><div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>&#160;  {</div><div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> origX = paintState().origin.X;</div><div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> origY = paintState().origin.Y;</div><div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>&#160;</div><div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX1 = paintState().absClippingRect.X1;</div><div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY1 = paintState().absClippingRect.Y1;</div><div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX2 = paintState().absClippingRect.X2;</div><div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY2 = paintState().absClippingRect.Y2;</div><div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>&#160;</div><div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> x1 = iclamp(rect.X1 + origX, clipX1, clipX2);</div><div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> y1 = iclamp(rect.Y1 + origY, clipY1, clipY2);</div><div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> x2 = iclamp(rect.X2 + origX, clipX1, clipX2);</div><div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> y2 = iclamp(rect.Y2 + origY, clipY1, clipY2);</div><div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>&#160;</div><div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>&#160;    updateRect = updateRect.merge(Rect(x1, y1, x2, y2));</div><div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>&#160;    hideSprites(updateRect);</div><div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>&#160;</div><div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = y1; y &lt;= y2; ++y)</div><div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>&#160;      rawInvertRow(y, x1, x2);</div><div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>&#160;  }</div><div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>&#160;</div><div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>&#160;</div><div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TPreparePixel, <span class="keyword">typename</span> TRawGetRow, <span class="keyword">typename</span> TRawGetPixelInRow, <span class="keyword">typename</span> TRawSetPixelInRow&gt;</div><div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>&#160;  <span class="keywordtype">void</span> genericSwapFGBG(Rect <span class="keyword">const</span> &amp; rect, Rect &amp; updateRect, TPreparePixel preparePixel, TRawGetRow rawGetRow, TRawGetPixelInRow rawGetPixelInRow, TRawSetPixelInRow rawSetPixelInRow)</div><div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>&#160;  {</div><div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>&#160;    <span class="keyword">auto</span> penPattern   = preparePixel(paintState().penColor);</div><div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>&#160;    <span class="keyword">auto</span> brushPattern = preparePixel(paintState().brushColor);</div><div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>&#160;</div><div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>&#160;    <span class="keywordtype">int</span> origX = paintState().origin.X;</div><div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>&#160;    <span class="keywordtype">int</span> origY = paintState().origin.Y;</div><div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>&#160;</div><div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX1 = paintState().absClippingRect.X1;</div><div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY1 = paintState().absClippingRect.Y1;</div><div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX2 = paintState().absClippingRect.X2;</div><div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY2 = paintState().absClippingRect.Y2;</div><div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>&#160;</div><div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> x1 = iclamp(rect.X1 + origX, clipX1, clipX2);</div><div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> y1 = iclamp(rect.Y1 + origY, clipY1, clipY2);</div><div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> x2 = iclamp(rect.X2 + origX, clipX1, clipX2);</div><div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> y2 = iclamp(rect.Y2 + origY, clipY1, clipY2);</div><div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>&#160;</div><div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>&#160;    updateRect = updateRect.merge(Rect(x1, y1, x2, y2));</div><div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>&#160;    hideSprites(updateRect);</div><div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>&#160;</div><div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = y1; y &lt;= y2; ++y) {</div><div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>&#160;      <span class="keyword">auto</span> row = rawGetRow(y);</div><div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = x1; x &lt;= x2; ++x) {</div><div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>&#160;        <span class="keyword">auto</span> px = rawGetPixelInRow(row, x);</div><div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>&#160;        <span class="keywordflow">if</span> (px == penPattern)</div><div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>&#160;          rawSetPixelInRow(row, x, brushPattern);</div><div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (px == brushPattern)</div><div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>&#160;          rawSetPixelInRow(row, x, penPattern);</div><div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>&#160;      }</div><div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>&#160;    }</div><div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>&#160;  }</div><div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>&#160;</div><div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>&#160;</div><div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TRawGetRow, <span class="keyword">typename</span> TRawGetPixelInRow, <span class="keyword">typename</span> TRawSetPixelInRow&gt;</div><div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>&#160;  <span class="keywordtype">void</span> genericCopyRect(Rect <span class="keyword">const</span> &amp; source, Rect &amp; updateRect, TRawGetRow rawGetRow, TRawGetPixelInRow rawGetPixelInRow, TRawSetPixelInRow rawSetPixelInRow)</div><div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>&#160;  {</div><div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX1 = paintState().absClippingRect.X1;</div><div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY1 = paintState().absClippingRect.Y1;</div><div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipX2 = paintState().absClippingRect.X2;</div><div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> clipY2 = paintState().absClippingRect.Y2;</div><div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>&#160;</div><div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>&#160;    <span class="keywordtype">int</span> origX = paintState().origin.X;</div><div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>&#160;    <span class="keywordtype">int</span> origY = paintState().origin.Y;</div><div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>&#160;</div><div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>&#160;    <span class="keywordtype">int</span> srcX = source.X1 + origX;</div><div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>&#160;    <span class="keywordtype">int</span> srcY = source.Y1 + origY;</div><div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a>  = source.X2 - source.X1 + 1;</div><div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a> = source.Y2 - source.Y1 + 1;</div><div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>&#160;    <span class="keywordtype">int</span> destX = paintState().position.X;</div><div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>&#160;    <span class="keywordtype">int</span> destY = paintState().position.Y;</div><div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>&#160;    <span class="keywordtype">int</span> deltaX = destX - srcX;</div><div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>&#160;    <span class="keywordtype">int</span> deltaY = destY - srcY;</div><div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>&#160;</div><div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>&#160;    <span class="keywordtype">int</span> incX = deltaX &lt; 0 ? 1 : -1;</div><div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>&#160;    <span class="keywordtype">int</span> incY = deltaY &lt; 0 ? 1 : -1;</div><div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>&#160;</div><div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>&#160;    <span class="keywordtype">int</span> startX = deltaX &lt; 0 ? destX : destX + <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> - 1;</div><div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>&#160;    <span class="keywordtype">int</span> startY = deltaY &lt; 0 ? destY : destY + <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a> - 1;</div><div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>&#160;</div><div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>&#160;    updateRect = updateRect.merge(Rect(srcX, srcY, srcX + <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> - 1, srcY + <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a> - 1));</div><div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>&#160;    updateRect = updateRect.merge(Rect(destX, destY, destX + <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> - 1, destY + <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a> - 1));</div><div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>&#160;    hideSprites(updateRect);</div><div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>&#160;</div><div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = startY, i = 0; i &lt; <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a>; y += incY, ++i) {</div><div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>&#160;      <span class="keywordflow">if</span> (y &gt;= clipY1 &amp;&amp; y &lt;= clipY2) {</div><div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>&#160;        <span class="keyword">auto</span> srcRow = rawGetRow(y - deltaY);</div><div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>&#160;        <span class="keyword">auto</span> dstRow = rawGetRow(y);</div><div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = startX, j = 0; j &lt; <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a>; x += incX, ++j) {</div><div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>&#160;          <span class="keywordflow">if</span> (x &gt;= clipX1 &amp;&amp; x &lt;= clipX2)</div><div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>&#160;            rawSetPixelInRow(dstRow, x, rawGetPixelInRow(srcRow, x - deltaX));</div><div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>&#160;        }</div><div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>&#160;      }</div><div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>&#160;    }</div><div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>&#160;  }</div><div class="line"><a name="l01580"></a><span class="lineno"> 1580</span>&#160;</div><div class="line"><a name="l01581"></a><span class="lineno"> 1581</span>&#160;</div><div class="line"><a name="l01582"></a><span class="lineno"> 1582</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TRawGetRow, <span class="keyword">typename</span> TRawSetPixelInRow, <span class="keyword">typename</span> TDataType&gt;</div><div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>&#160;  <span class="keywordtype">void</span> genericRawDrawBitmap_Native(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, TDataType * <a class="code" href="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a>, <span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> XCount, <span class="keywordtype">int</span> YCount,</div><div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>&#160;                                   TRawGetRow rawGetRow, TRawSetPixelInRow rawSetPixelInRow)</div><div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>&#160;  {</div><div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> yEnd = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + YCount;</div><div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> xEnd = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> + XCount;</div><div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt; yEnd; ++y, ++destY) {</div><div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>&#160;      <span class="keyword">auto</span> dstrow = rawGetRow(destY);</div><div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>&#160;      <span class="keyword">auto</span> src = <a class="code" href="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a> + y * <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> + <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>;</div><div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, adestX = destX; x &lt; xEnd; ++x, ++adestX, ++src)</div><div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>&#160;        rawSetPixelInRow(dstrow, adestX, *src);</div><div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>&#160;    }</div><div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>&#160;  }</div><div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>&#160;</div><div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>&#160;</div><div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>&#160;</div><div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TRawGetRow, <span class="keyword">typename</span> TRawGetPixelInRow, <span class="keyword">typename</span> TRawSetPixelInRow, <span class="keyword">typename</span> TBackground&gt;</div><div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>&#160;  <span class="keywordtype">void</span> genericRawDrawBitmap_Mask(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, Bitmap <span class="keyword">const</span> * bitmap, TBackground * saveBackground, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> XCount, <span class="keywordtype">int</span> YCount,</div><div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>&#160;                                 TRawGetRow rawGetRow, TRawGetPixelInRow rawGetPixelInRow, TRawSetPixelInRow rawSetPixelInRow)</div><div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>&#160;  {</div><div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> = bitmap-&gt;width;</div><div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> yEnd  = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + YCount;</div><div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> xEnd  = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> + XCount;</div><div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>&#160;    <span class="keyword">auto</span> <a class="code" href="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a> = bitmap-&gt;data;</div><div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> rowlen = (bitmap-&gt;width + 7) / 8;</div><div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>&#160;</div><div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>&#160;    <span class="keywordflow">if</span> (saveBackground) {</div><div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>&#160;</div><div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>&#160;      <span class="comment">// save background and draw the bitmap</span></div><div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt; yEnd; ++y, ++destY) {</div><div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>&#160;        <span class="keyword">auto</span> dstrow = rawGetRow(destY);</div><div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>&#160;        <span class="keyword">auto</span> savePx = saveBackground + y * <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> + <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>;</div><div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>&#160;        <span class="keyword">auto</span> src = <a class="code" href="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a> + y * rowlen;</div><div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, adestX = destX; x &lt; xEnd; ++x, ++adestX, ++savePx) {</div><div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>&#160;          *savePx = rawGetPixelInRow(dstrow, adestX);</div><div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>&#160;          <span class="keywordflow">if</span> ((src[x &gt;&gt; 3] &lt;&lt; (x &amp; 7)) &amp; 0x80)</div><div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>&#160;            rawSetPixelInRow(dstrow, adestX);</div><div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>&#160;        }</div><div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>&#160;      }</div><div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>&#160;</div><div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>&#160;</div><div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>&#160;      <span class="comment">// just draw the bitmap</span></div><div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt; yEnd; ++y, ++destY) {</div><div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>&#160;        <span class="keyword">auto</span> dstrow = rawGetRow(destY);</div><div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>&#160;        <span class="keyword">auto</span> src = <a class="code" href="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a> + y * rowlen;</div><div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, adestX = destX; x &lt; xEnd; ++x, ++adestX) {</div><div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>&#160;          <span class="keywordflow">if</span> ((src[x &gt;&gt; 3] &lt;&lt; (x &amp; 7)) &amp; 0x80)</div><div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>&#160;            rawSetPixelInRow(dstrow, adestX);</div><div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>&#160;        }</div><div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>&#160;      }</div><div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>&#160;</div><div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>&#160;    }</div><div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>&#160;  }</div><div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>&#160;</div><div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>&#160;</div><div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TRawGetRow, <span class="keyword">typename</span> TRawGetPixelInRow, <span class="keyword">typename</span> TRawSetPixelInRow, <span class="keyword">typename</span> TBackground&gt;</div><div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>&#160;  <span class="keywordtype">void</span> genericRawDrawBitmap_RGBA2222(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, Bitmap <span class="keyword">const</span> * bitmap, TBackground * saveBackground, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> XCount, <span class="keywordtype">int</span> YCount,</div><div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>&#160;                                     TRawGetRow rawGetRow, TRawGetPixelInRow rawGetPixelInRow, TRawSetPixelInRow rawSetPixelInRow)</div><div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>&#160;  {</div><div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a>  = bitmap-&gt;width;</div><div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> yEnd   = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + YCount;</div><div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> xEnd   = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> + XCount;</div><div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>&#160;    <span class="keyword">auto</span> <a class="code" href="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a> = bitmap-&gt;data;</div><div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>&#160;</div><div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>&#160;    <span class="keywordflow">if</span> (saveBackground) {</div><div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>&#160;</div><div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>&#160;      <span class="comment">// save background and draw the bitmap</span></div><div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt; yEnd; ++y, ++destY) {</div><div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>&#160;        <span class="keyword">auto</span> dstrow = rawGetRow(destY);</div><div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>&#160;        <span class="keyword">auto</span> savePx = saveBackground + y * <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> + <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>;</div><div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>&#160;        <span class="keyword">auto</span> src = <a class="code" href="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a> + y * <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> + <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>;</div><div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, adestX = destX; x &lt; xEnd; ++x, ++adestX, ++savePx, ++src) {</div><div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>&#160;          *savePx = rawGetPixelInRow(dstrow, adestX);</div><div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>&#160;          <span class="keywordflow">if</span> (*src &amp; 0xc0)  <span class="comment">// alpha &gt; 0 ?</span></div><div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>&#160;            rawSetPixelInRow(dstrow, adestX, *src);</div><div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>&#160;        }</div><div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>&#160;      }</div><div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>&#160;</div><div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>&#160;</div><div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>&#160;      <span class="comment">// just draw the bitmap</span></div><div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt; yEnd; ++y, ++destY) {</div><div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>&#160;        <span class="keyword">auto</span> dstrow = rawGetRow(destY);</div><div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>&#160;        <span class="keyword">auto</span> src = <a class="code" href="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a> + y * <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> + <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>;</div><div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, adestX = destX; x &lt; xEnd; ++x, ++adestX, ++src) {</div><div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>&#160;          <span class="keywordflow">if</span> (*src &amp; 0xc0)  <span class="comment">// alpha &gt; 0 ?</span></div><div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>&#160;            rawSetPixelInRow(dstrow, adestX, *src);</div><div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>&#160;        }</div><div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>&#160;      }</div><div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>&#160;</div><div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>&#160;    }</div><div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>&#160;  }</div><div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>&#160;</div><div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>&#160;</div><div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TRawGetRow, <span class="keyword">typename</span> TRawGetPixelInRow, <span class="keyword">typename</span> TRawSetPixelInRow, <span class="keyword">typename</span> TBackground&gt;</div><div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>&#160;  <span class="keywordtype">void</span> genericRawDrawBitmap_RGBA8888(<span class="keywordtype">int</span> destX, <span class="keywordtype">int</span> destY, Bitmap <span class="keyword">const</span> * bitmap, TBackground * saveBackground, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>, <span class="keywordtype">int</span> XCount, <span class="keywordtype">int</span> YCount,</div><div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>&#160;                                     TRawGetRow rawGetRow, TRawGetPixelInRow rawGetPixelInRow, TRawSetPixelInRow rawSetPixelInRow)</div><div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>&#160;  {</div><div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> = bitmap-&gt;width;</div><div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> yEnd  = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + YCount;</div><div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> xEnd  = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> + XCount;</div><div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>&#160;    <span class="keyword">auto</span> <a class="code" href="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a> = (<a class="code" href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#ggafe919d7a7aeba256337f0fc494cf7221a165f06116e7b8d9b2481dfc805db4619">RGBA8888</a> <span class="keyword">const</span> *) bitmap-&gt;data;</div><div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>&#160;</div><div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>&#160;    if (saveBackground) {</div><div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>&#160;</div><div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>&#160;      <span class="comment">// save background and draw the bitmap</span></div><div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt; yEnd; ++y, ++destY) {</div><div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>&#160;        <span class="keyword">auto</span> dstrow = rawGetRow(destY);</div><div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>&#160;        <span class="keyword">auto</span> savePx = saveBackground + y * <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> + <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>;</div><div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>&#160;        <span class="keyword">auto</span> src = <a class="code" href="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a> + y * <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> + <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>;</div><div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, adestX = destX; x &lt; xEnd; ++x, ++adestX, ++savePx, ++src) {</div><div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>&#160;          *savePx = rawGetPixelInRow(dstrow, adestX);</div><div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>&#160;          <span class="keywordflow">if</span> (src-&gt;A)</div><div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>&#160;            rawSetPixelInRow(dstrow, adestX, *src);</div><div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>&#160;        }</div><div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>&#160;      }</div><div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>&#160;</div><div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>&#160;</div><div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>&#160;      <span class="comment">// just draw the bitmap</span></div><div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt; yEnd; ++y, ++destY) {</div><div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>&#160;        <span class="keyword">auto</span> dstrow = rawGetRow(destY);</div><div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>&#160;        <span class="keyword">auto</span> src = <a class="code" href="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a> + y * <a class="code" href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a> + <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>;</div><div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, adestX = destX; x &lt; xEnd; ++x, ++adestX, ++src) {</div><div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>&#160;          <span class="keywordflow">if</span> (src-&gt;A)</div><div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>&#160;            rawSetPixelInRow(dstrow, adestX, *src);</div><div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>&#160;        }</div><div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>&#160;      }</div><div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>&#160;</div><div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>&#160;    }</div><div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>&#160;  }</div><div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>&#160;</div><div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>&#160;</div><div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>&#160;  <span class="comment">// Scroll is done copying and filling rows</span></div><div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>&#160;  <span class="comment">// scroll &lt; 0 -&gt; scroll UP</span></div><div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>&#160;  <span class="comment">// scroll &gt; 0 -&gt; scroll DOWN</span></div><div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TRawCopyRow, <span class="keyword">typename</span> TRawFillRow&gt;</div><div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>&#160;  <span class="keywordtype">void</span> genericVScroll(<span class="keywordtype">int</span> scroll, Rect &amp; updateRect,</div><div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>&#160;                      TRawCopyRow rawCopyRow, TRawFillRow rawFillRow)</div><div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>&#160;  {</div><div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>&#160;    hideSprites(updateRect);</div><div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>&#160;    RGB888 color = getActualBrushColor();</div><div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> = paintState().scrollingRegion.Y1;</div><div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a> = paintState().scrollingRegion.Y2;</div><div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> = paintState().scrollingRegion.X1;</div><div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> = paintState().scrollingRegion.X2;</div><div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a> = <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a> - <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + 1;</div><div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>&#160;</div><div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>&#160;    <span class="keywordflow">if</span> (scroll &lt; 0) {</div><div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>&#160;</div><div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>&#160;      <span class="comment">// scroll UP</span></div><div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>&#160;</div><div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a> + scroll; ++i) {</div><div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>&#160;        <span class="comment">// copy X1..X2 of (Y1 + i - scroll) to (Y1 + i)</span></div><div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>&#160;        rawCopyRow(<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, (<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i - scroll), (<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i));</div><div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>&#160;      }</div><div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>&#160;      <span class="comment">// fill lower area with brush color</span></div><div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a> + scroll; i &lt; <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a>; ++i)</div><div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>&#160;        rawFillRow(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i, <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, color);</div><div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>&#160;</div><div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (scroll &gt; 0) {</div><div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>&#160;</div><div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>&#160;      <span class="comment">// scroll DOWN</span></div><div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a> - scroll - 1; i &gt;= 0; --i) {</div><div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>&#160;        <span class="comment">// copy X1..X2 of (Y1 + i) to (Y1 + i + scroll)</span></div><div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>&#160;        rawCopyRow(<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, (<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i), (<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i + scroll));</div><div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>&#160;      }</div><div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>&#160;</div><div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>&#160;      <span class="comment">// fill upper area with brush color</span></div><div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; scroll; ++i)</div><div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>&#160;        rawFillRow(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i, <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, color);</div><div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>&#160;</div><div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>&#160;    }</div><div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>&#160;  }</div><div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>&#160;</div><div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>&#160;</div><div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>&#160;  <span class="comment">// scroll is done swapping rows and rows pointers</span></div><div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>&#160;  <span class="comment">// scroll &lt; 0 -&gt; scroll UP</span></div><div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>&#160;  <span class="comment">// scroll &gt; 0 -&gt; scroll DOWN</span></div><div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TSwapRowsCopying, <span class="keyword">typename</span> TSwapRowsPo<span class="keywordtype">int</span>ers, <span class="keyword">typename</span> TRawFillRow&gt;</div><div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>&#160;  <span class="keywordtype">void</span> genericVScroll(<span class="keywordtype">int</span> scroll, Rect &amp; updateRect,</div><div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>&#160;                      TSwapRowsCopying swapRowsCopying, TSwapRowsPointers swapRowsPointers, TRawFillRow rawFillRow)</div><div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>&#160;  {</div><div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>&#160;    hideSprites(updateRect);</div><div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>&#160;    RGB888 color = getActualBrushColor();</div><div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> = paintState().scrollingRegion.Y1;</div><div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a> = paintState().scrollingRegion.Y2;</div><div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> = paintState().scrollingRegion.X1;</div><div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> = paintState().scrollingRegion.X2;</div><div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a> = <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a> - <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + 1;</div><div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>&#160;</div><div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> viewPortWidth = <a class="code" href="classfabgl_1_1_bitmapped_display_controller_a9274060e33708f97a1d77ca37f7bf0a8.html#a9274060e33708f97a1d77ca37f7bf0a8">getViewPortWidth</a>();</div><div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>&#160;</div><div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>&#160;    <span class="keywordflow">if</span> (scroll &lt; 0) {</div><div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>&#160;</div><div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>&#160;      <span class="comment">// scroll UP</span></div><div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>&#160;</div><div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a> + scroll; ++i) {</div><div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>&#160;</div><div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>&#160;        <span class="comment">// these are necessary to maintain invariate out of scrolling regions</span></div><div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> &gt; 0)</div><div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>&#160;          swapRowsCopying(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i, <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i - scroll, 0, <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> - 1);</div><div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> &lt; viewPortWidth - 1)</div><div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>&#160;          swapRowsCopying(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i, <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i - scroll, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> + 1, viewPortWidth - 1);</div><div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>&#160;</div><div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>&#160;        <span class="comment">// swap scan lines</span></div><div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>&#160;        swapRowsPointers(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i, <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i - scroll);</div><div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>&#160;      }</div><div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>&#160;</div><div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>&#160;      <span class="comment">// fill lower area with brush color</span></div><div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a> + scroll; i &lt; <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a>; ++i)</div><div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>&#160;        rawFillRow(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i, <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, color);</div><div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>&#160;</div><div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (scroll &gt; 0) {</div><div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>&#160;</div><div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>&#160;      <span class="comment">// scroll DOWN</span></div><div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = <a class="code" href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a> - scroll - 1; i &gt;= 0; --i) {</div><div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>&#160;</div><div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>&#160;        <span class="comment">// these are necessary to maintain invariate out of scrolling regions</span></div><div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> &gt; 0)</div><div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>&#160;          swapRowsCopying(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i, <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i + scroll, 0, <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> - 1);</div><div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> &lt; viewPortWidth - 1)</div><div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>&#160;          swapRowsCopying(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i, <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i + scroll, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> + 1, viewPortWidth - 1);</div><div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>&#160;</div><div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>&#160;        <span class="comment">// swap scan lines</span></div><div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>&#160;        swapRowsPointers(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i, <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i + scroll);</div><div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>&#160;      }</div><div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>&#160;</div><div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>&#160;      <span class="comment">// fill upper area with brush color</span></div><div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; scroll; ++i)</div><div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>&#160;        rawFillRow(<a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> + i, <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>, <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>, color);</div><div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>&#160;</div><div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>&#160;    }</div><div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>&#160;  }</div><div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>&#160;</div><div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>&#160;</div><div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>&#160;</div><div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>&#160;  <span class="comment">// Scroll is done copying and filling columns</span></div><div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>&#160;  <span class="comment">// scroll &lt; 0 -&gt; scroll LEFT</span></div><div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>&#160;  <span class="comment">// scroll &gt; 0 -&gt; scroll RIGHT</span></div><div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TPreparePixel, <span class="keyword">typename</span> TRawGetRow, <span class="keyword">typename</span> TRawGetPixelInRow, <span class="keyword">typename</span> TRawSetPixelInRow&gt;</div><div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>&#160;  <span class="keywordtype">void</span> genericHScroll(<span class="keywordtype">int</span> scroll, Rect &amp; updateRect,</div><div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>&#160;                      TPreparePixel preparePixel, TRawGetRow rawGetRow, TRawGetPixelInRow rawGetPixelInRow, TRawSetPixelInRow rawSetPixelInRow)</div><div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>&#160;  {</div><div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>&#160;    hideSprites(updateRect);</div><div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>&#160;    <span class="keyword">auto</span> pattern = preparePixel(getActualBrushColor());</div><div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>&#160;</div><div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a> = paintState().scrollingRegion.Y1;</div><div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a> = paintState().scrollingRegion.Y2;</div><div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> = paintState().scrollingRegion.X1;</div><div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> = paintState().scrollingRegion.X2;</div><div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>&#160;</div><div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>&#160;    <span class="keywordflow">if</span> (scroll &lt; 0) {</div><div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>&#160;      <span class="comment">// scroll left</span></div><div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt;= <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>; ++y) {</div><div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>&#160;        <span class="keyword">auto</span> row = rawGetRow(y);</div><div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>; x &lt;= <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> + scroll; ++x) {</div><div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>&#160;          <span class="keyword">auto</span> c = rawGetPixelInRow(row, x - scroll);</div><div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>&#160;          rawSetPixelInRow(row, x, c);</div><div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>&#160;        }</div><div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>&#160;        <span class="comment">// fill right area with brush color</span></div><div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> + 1 + scroll; x &lt;= <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a>; ++x)</div><div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>&#160;          rawSetPixelInRow(row, x, pattern);</div><div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>&#160;      }</div><div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (scroll &gt; 0) {</div><div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>&#160;      <span class="comment">// scroll right</span></div><div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = <a class="code" href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a>; y &lt;= <a class="code" href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a>; ++y) {</div><div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>&#160;        <span class="keyword">auto</span> row = rawGetRow(y);</div><div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a> - scroll; x &gt;= <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>; --x) {</div><div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>&#160;          <span class="keyword">auto</span> c = rawGetPixelInRow(row, x);</div><div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>&#160;          rawSetPixelInRow(row, x + scroll, c);</div><div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>&#160;        }</div><div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>&#160;        <span class="comment">// fill left area with brush color</span></div><div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a>; x &lt; <a class="code" href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a> + scroll; ++x)</div><div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>&#160;          rawSetPixelInRow(row, x, pattern);</div><div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>&#160;      }</div><div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>&#160;    }</div><div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>&#160;  }</div><div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>&#160;</div><div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>&#160;</div><div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>&#160;</div><div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>&#160;</div><div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>&#160;};</div><div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>&#160;</div><div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>&#160;</div><div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>&#160;</div><div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>&#160;} <span class="comment">// end of namespace</span></div><div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>&#160;</div><div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>&#160;</div><div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>&#160;</div><div class="ttc" id="fabutils_8h_aacc253365e856de8781b525223af3c52_html_aacc253365e856de8781b525223af3c52"><div class="ttname"><a href="fabutils_8h_aacc253365e856de8781b525223af3c52.html#aacc253365e856de8781b525223af3c52">X2</a></div><div class="ttdeci">int16_t X2</div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l00179">fabutils.h:179</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca6f1f3363f90f1b8b6080d8e61f1053a0"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca6f1f3363f90f1b8b6080d8e61f1053a0">fabgl::CursorResize4</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00520">displaycontroller.h:520</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b888_html"><div class="ttname"><a href="structfabgl_1_1_r_g_b888.html">fabgl::RGB888</a></div><div class="ttdoc">Represents a 24 bit RGB color. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00228">displaycontroller.h:228</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_a2656ee44feda5ea3cac87985700be97f_html_a2656ee44feda5ea3cac87985700be97f"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_a2656ee44feda5ea3cac87985700be97f.html#a2656ee44feda5ea3cac87985700be97f">fabgl::GlyphOptions::underline</a></div><div class="ttdeci">uint16_t underline</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00351">displaycontroller.h:351</a></div></div>
<div class="ttc" id="structfabgl_1_1_cursor_html"><div class="ttname"><a href="structfabgl_1_1_cursor.html">fabgl::Cursor</a></div><div class="ttdoc">Defines a cursor. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00528">displaycontroller.h:528</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca26497f04b56ab5720eb99f433df6268b"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca26497f04b56ab5720eb99f433df6268b">fabgl::CursorPen</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00508">displaycontroller.h:508</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1ca27b99bd106651508d81314cf1d9f48b4"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca27b99bd106651508d81314cf1d9f48b4">fabgl::BrightBlack</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00211">displaycontroller.h:211</a></div></div>
<div class="ttc" id="group___enumerations_gadb8147abda8588ce7306a700532148e1_html_ggadb8147abda8588ce7306a700532148e1aa2fb9a703d274288448da0270a1eeb1a"><div class="ttname"><a href="group___enumerations_gadb8147abda8588ce7306a700532148e1.html#ggadb8147abda8588ce7306a700532148e1aa2fb9a703d274288448da0270a1eeb1a">fabgl::DisplayControllerType::Textual</a></div></div>
<div class="ttc" id="structfabgl_1_1_cursor_a068b9d6ed14249ac8d20123435be5356_html_a068b9d6ed14249ac8d20123435be5356"><div class="ttname"><a href="structfabgl_1_1_cursor_a068b9d6ed14249ac8d20123435be5356.html#a068b9d6ed14249ac8d20123435be5356">fabgl::Cursor::hotspotY</a></div><div class="ttdeci">int16_t hotspotY</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00530">displaycontroller.h:530</a></div></div>
<div class="ttc" id="structfabgl_1_1_sprite_html"><div class="ttname"><a href="structfabgl_1_1_sprite.html">fabgl::Sprite</a></div><div class="ttdoc">Represents a sprite. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00546">displaycontroller.h:546</a></div></div>
<div class="ttc" id="structfabgl_1_1_cursor_ab90f53fbe007c65f80d83ece2352f49a_html_ab90f53fbe007c65f80d83ece2352f49a"><div class="ttname"><a href="structfabgl_1_1_cursor_ab90f53fbe007c65f80d83ece2352f49a.html#ab90f53fbe007c65f80d83ece2352f49a">fabgl::Cursor::bitmap</a></div><div class="ttdeci">Bitmap bitmap</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00531">displaycontroller.h:531</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1cad0784a3f969fe736e8b271a5a161d106"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cad0784a3f969fe736e8b271a5a161d106">fabgl::Green</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00205">displaycontroller.h:205</a></div></div>
<div class="ttc" id="group___enumerations_ga03403b592cc00776d70bc5ad6c177276_html_gga03403b592cc00776d70bc5ad6c177276a2c2e91aa769aa411b0db57883d167601"><div class="ttname"><a href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276a2c2e91aa769aa411b0db57883d167601">fabgl::NativePixelFormat::PALETTE8</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_a75ba732cc6ae90f53757b588f6c75d7e_html_a75ba732cc6ae90f53757b588f6c75d7e"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_a75ba732cc6ae90f53757b588f6c75d7e.html#a75ba732cc6ae90f53757b588f6c75d7e">fabgl::BitmappedDisplayController::setSprites</a></div><div class="ttdeci">void setSprites(T *sprites, int count)</div><div class="ttdoc">Sets the list of active sprites. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00839">displaycontroller.h:839</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca05bd88f57b86497034de4d73b861f299"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca05bd88f57b86497034de4d73b861f299">fabgl::CursorResize3</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00519">displaycontroller.h:519</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_a5e5288dfa4b4cdcb9380711da9fa1e65_html_a5e5288dfa4b4cdcb9380711da9fa1e65"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_a5e5288dfa4b4cdcb9380711da9fa1e65.html#a5e5288dfa4b4cdcb9380711da9fa1e65">fabgl::BitmappedDisplayController::resumeBackgroundPrimitiveExecution</a></div><div class="ttdeci">virtual void resumeBackgroundPrimitiveExecution()=0</div><div class="ttdoc">Resumes drawings after suspendBackgroundPrimitiveExecution(). </div></div>
<div class="ttc" id="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221_html_ggafe919d7a7aeba256337f0fc494cf7221aec0fc0100c4fc1ce4eea230c3dc10360"><div class="ttname"><a href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#ggafe919d7a7aeba256337f0fc494cf7221aec0fc0100c4fc1ce4eea230c3dc10360">fabgl::PixelFormat::Undefined</a></div></div>
<div class="ttc" id="displaycontroller_8h_a15e1f87cbc70601e7bb67d5e48f2f73d_html_a15e1f87cbc70601e7bb67d5e48f2f73d"><div class="ttname"><a href="displaycontroller_8h_a15e1f87cbc70601e7bb67d5e48f2f73d.html#a15e1f87cbc70601e7bb67d5e48f2f73d">blank</a></div><div class="ttdeci">uint16_t blank</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00326">displaycontroller.h:326</a></div></div>
<div class="ttc" id="structfabgl_1_1_glyph_adcf201a8aabf55cb352ec05331242594_html_adcf201a8aabf55cb352ec05331242594"><div class="ttname"><a href="structfabgl_1_1_glyph_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">fabgl::Glyph::height</a></div><div class="ttdeci">uint8_t height</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00331">displaycontroller.h:331</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_ad1fd85e7fdb3d255187062fce6511ae5_html_ad1fd85e7fdb3d255187062fce6511ae5"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_ad1fd85e7fdb3d255187062fce6511ae5.html#ad1fd85e7fdb3d255187062fce6511ae5">fabgl::GlyphOptions::invert</a></div><div class="ttdeci">uint16_t invert</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00349">displaycontroller.h:349</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1cabf28513245738599d13e3ce36bd16c82"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cabf28513245738599d13e3ce36bd16c82">fabgl::Yellow</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00206">displaycontroller.h:206</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca9a2987c94b00a09366636fcce41efb50"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca9a2987c94b00a09366636fcce41efb50">fabgl::CursorPoint</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00511">displaycontroller.h:511</a></div></div>
<div class="ttc" id="group___enumerations_ga03403b592cc00776d70bc5ad6c177276_html_gga03403b592cc00776d70bc5ad6c177276a0727ac3bf47006f125ad171d6ca18184"><div class="ttname"><a href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276a0727ac3bf47006f125ad171d6ca18184">fabgl::NativePixelFormat::SBGR2222</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b222_ad6dca68b61d96e60ca0062e00390ba9f_html_ad6dca68b61d96e60ca0062e00390ba9f"><div class="ttname"><a href="structfabgl_1_1_r_g_b222_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">fabgl::RGB222::R</a></div><div class="ttdeci">uint8_t R</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00276">displaycontroller.h:276</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2caafeb160f7eb8c279e71a6d34425acdc5"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2caafeb160f7eb8c279e71a6d34425acdc5">fabgl::CursorPointerSimple</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00505">displaycontroller.h:505</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_adcdb248e9afa3dc4557bd43f034365be_html_adcdb248e9afa3dc4557bd43f034365be"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_adcdb248e9afa3dc4557bd43f034365be.html#adcdb248e9afa3dc4557bd43f034365be">fabgl::GlyphOptions::fillBackground</a></div><div class="ttdeci">uint16_t fillBackground</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00345">displaycontroller.h:345</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b_a8888_a7c7fb36d372d349a62c14f1e6c7337ea_html_a7c7fb36d372d349a62c14f1e6c7337ea"><div class="ttname"><a href="structfabgl_1_1_r_g_b_a8888_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">fabgl::RGBA8888::B</a></div><div class="ttdeci">uint8_t B</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00260">displaycontroller.h:260</a></div></div>
<div class="ttc" id="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07_html_a3e43b2629ffdaba77fe72f8f70818f07"><div class="ttname"><a href="fabutils_8h_a3e43b2629ffdaba77fe72f8f70818f07.html#a3e43b2629ffdaba77fe72f8f70818f07">Y2</a></div><div class="ttdeci">int16_t Y2</div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l00180">fabutils.h:180</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca2a197f20333c10e91bd245a5528b1738"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca2a197f20333c10e91bd245a5528b1738">fabgl::CursorLeftArrow</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00512">displaycontroller.h:512</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca8735e294bdeda83cc90c87d3f01f6994"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca8735e294bdeda83cc90c87d3f01f6994">fabgl::CursorPointerAmigaLike</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00503">displaycontroller.h:503</a></div></div>
<div class="ttc" id="displaycontroller_8h_ac653040b5d629ff1981c5802fc7d2b97_html_ac653040b5d629ff1981c5802fc7d2b97"><div class="ttname"><a href="displaycontroller_8h_ac653040b5d629ff1981c5802fc7d2b97.html#ac653040b5d629ff1981c5802fc7d2b97">italic</a></div><div class="ttdeci">uint16_t italic</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00324">displaycontroller.h:324</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca160d0c1e0dd66bff97bce95fd5bb3c4b"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca160d0c1e0dd66bff97bce95fd5bb3c4b">fabgl::CursorResize2</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00518">displaycontroller.h:518</a></div></div>
<div class="ttc" id="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266_html_aefe36b84395404eaeb2fb7bc8dfa9266"><div class="ttname"><a href="fabutils_8h_aefe36b84395404eaeb2fb7bc8dfa9266.html#aefe36b84395404eaeb2fb7bc8dfa9266">Y1</a></div><div class="ttdeci">int16_t Y1</div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l00178">fabutils.h:178</a></div></div>
<div class="ttc" id="structfabgl_1_1_cursor_a0e4f59780867e7453248d317439cc16e_html_a0e4f59780867e7453248d317439cc16e"><div class="ttname"><a href="structfabgl_1_1_cursor_a0e4f59780867e7453248d317439cc16e.html#a0e4f59780867e7453248d317439cc16e">fabgl::Cursor::hotspotX</a></div><div class="ttdeci">int16_t hotspotX</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00529">displaycontroller.h:529</a></div></div>
<div class="ttc" id="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221_html_ggafe919d7a7aeba256337f0fc494cf7221a165f06116e7b8d9b2481dfc805db4619"><div class="ttname"><a href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#ggafe919d7a7aeba256337f0fc494cf7221a165f06116e7b8d9b2481dfc805db4619">fabgl::PixelFormat::RGBA8888</a></div></div>
<div class="ttc" id="displaycontroller_8h_abe4637362df8e341470401813999dd17_html_abe4637362df8e341470401813999dd17"><div class="ttname"><a href="displaycontroller_8h_abe4637362df8e341470401813999dd17.html#abe4637362df8e341470401813999dd17">Y</a></div><div class="ttdeci">int16_t Y</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00321">displaycontroller.h:321</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1cad3163c1fcda01965b692ec2c3122b743"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cad3163c1fcda01965b692ec2c3122b743">fabgl::Red</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00204">displaycontroller.h:204</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2caf0dc99bddf44dd2b1a8293b730bad118"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2caf0dc99bddf44dd2b1a8293b730bad118">fabgl::CursorPointer</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00507">displaycontroller.h:507</a></div></div>
<div class="ttc" id="displaycontroller_8h_adcdb248e9afa3dc4557bd43f034365be_html_adcdb248e9afa3dc4557bd43f034365be"><div class="ttname"><a href="displaycontroller_8h_adcdb248e9afa3dc4557bd43f034365be.html#adcdb248e9afa3dc4557bd43f034365be">fillBackground</a></div><div class="ttdeci">uint16_t fillBackground</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00321">displaycontroller.h:321</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b_a2222_ad6dca68b61d96e60ca0062e00390ba9f_html_ad6dca68b61d96e60ca0062e00390ba9f"><div class="ttname"><a href="structfabgl_1_1_r_g_b_a2222_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">fabgl::RGBA2222::R</a></div><div class="ttdeci">uint8_t R</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00306">displaycontroller.h:306</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1cab548046646b36c12aa6ba841de500094"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cab548046646b36c12aa6ba841de500094">fabgl::White</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00210">displaycontroller.h:210</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_a3b59c735745c810161faa9660ef88aac_html_a3b59c735745c810161faa9660ef88aac"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_a3b59c735745c810161faa9660ef88aac.html#a3b59c735745c810161faa9660ef88aac">fabgl::GlyphOptions::reduceLuminosity</a></div><div class="ttdeci">uint16_t reduceLuminosity</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00347">displaycontroller.h:347</a></div></div>
<div class="ttc" id="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21_html_a96db82e580e46e24e2b39dd6c5bf7c21"><div class="ttname"><a href="displaycontroller_8h_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">data</a></div><div class="ttdeci">uint8_t const  * data</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00324">displaycontroller.h:324</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_gab87bacfdad76e61b9412d7124be44c1c"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">fabgl::Color</a></div><div class="ttdeci">Color</div><div class="ttdoc">This enum defines named colors. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00202">displaycontroller.h:202</a></div></div>
<div class="ttc" id="structfabgl_1_1_glyph_abe4637362df8e341470401813999dd17_html_abe4637362df8e341470401813999dd17"><div class="ttname"><a href="structfabgl_1_1_glyph_abe4637362df8e341470401813999dd17.html#abe4637362df8e341470401813999dd17">fabgl::Glyph::Y</a></div><div class="ttdeci">int16_t Y</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00329">displaycontroller.h:329</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b_a8888_aae2a690e4df0bce516938666009b5ea6_html_aae2a690e4df0bce516938666009b5ea6"><div class="ttname"><a href="structfabgl_1_1_r_g_b_a8888_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">fabgl::RGBA8888::G</a></div><div class="ttdeci">uint8_t G</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00259">displaycontroller.h:259</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1ca2ed18d4ecd62410034c7ff19a1384357"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca2ed18d4ecd62410034c7ff19a1384357">fabgl::BrightRed</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00212">displaycontroller.h:212</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_html"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller.html">fabgl::BitmappedDisplayController</a></div><div class="ttdoc">Represents the base abstract class for bitmapped display controllers. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00730">displaycontroller.h:730</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_a8ffa7a3e4760b3ecc48399c25cb37773_html_a8ffa7a3e4760b3ecc48399c25cb37773"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_a8ffa7a3e4760b3ecc48399c25cb37773.html#a8ffa7a3e4760b3ecc48399c25cb37773">fabgl::GlyphOptions::Invert</a></div><div class="ttdeci">GlyphOptions &amp; Invert(uint8_t value)</div><div class="ttdoc">Helper method to set or reset foreground and background swapping. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00374">displaycontroller.h:374</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b888_aae2a690e4df0bce516938666009b5ea6_html_aae2a690e4df0bce516938666009b5ea6"><div class="ttname"><a href="structfabgl_1_1_r_g_b888_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">fabgl::RGB888::G</a></div><div class="ttdeci">uint8_t G</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00230">displaycontroller.h:230</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1cac1e9bce8242f443c54c7405223d616cd"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cac1e9bce8242f443c54c7405223d616cd">fabgl::Black</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00203">displaycontroller.h:203</a></div></div>
<div class="ttc" id="structfabgl_1_1_glyph_aa6aba27bc1a89db9e350b50bbf881f57_html_aa6aba27bc1a89db9e350b50bbf881f57"><div class="ttname"><a href="structfabgl_1_1_glyph_aa6aba27bc1a89db9e350b50bbf881f57.html#aa6aba27bc1a89db9e350b50bbf881f57">fabgl::Glyph::X</a></div><div class="ttdeci">int16_t X</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00328">displaycontroller.h:328</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b_a2222_a7c7fb36d372d349a62c14f1e6c7337ea_html_a7c7fb36d372d349a62c14f1e6c7337ea"><div class="ttname"><a href="structfabgl_1_1_r_g_b_a2222_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">fabgl::RGBA2222::B</a></div><div class="ttdeci">uint8_t B</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00308">displaycontroller.h:308</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1cab0d4738f9c7f12049e52aa4e868bdc8b"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cab0d4738f9c7f12049e52aa4e868bdc8b">fabgl::Cyan</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00209">displaycontroller.h:209</a></div></div>
<div class="ttc" id="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed_html_a0dd601bb81c34d0e0e1c71e445d8c9ed"><div class="ttname"><a href="fabutils_8h_a0dd601bb81c34d0e0e1c71e445d8c9ed.html#a0dd601bb81c34d0e0e1c71e445d8c9ed">X1</a></div><div class="ttdeci">int16_t X1</div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l00177">fabutils.h:177</a></div></div>
<div class="ttc" id="group___enumerations_ga8ac9813c9c9df8a1e7f6ec66b346f08e_html_ga8ac9813c9c9df8a1e7f6ec66b346f08e"><div class="ttname"><a href="group___enumerations_ga8ac9813c9c9df8a1e7f6ec66b346f08e.html#ga8ac9813c9c9df8a1e7f6ec66b346f08e">fabgl::LineEnds</a></div><div class="ttdeci">LineEnds</div><div class="ttdoc">This enum defines line ends when pen width is greater than 1. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00456">displaycontroller.h:456</a></div></div>
<div class="ttc" id="displaycontroller_8h_a2656ee44feda5ea3cac87985700be97f_html_a2656ee44feda5ea3cac87985700be97f"><div class="ttname"><a href="displaycontroller_8h_a2656ee44feda5ea3cac87985700be97f.html#a2656ee44feda5ea3cac87985700be97f">underline</a></div><div class="ttdeci">uint16_t underline</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00327">displaycontroller.h:327</a></div></div>
<div class="ttc" id="group___enumerations_ga8ac9813c9c9df8a1e7f6ec66b346f08e_html_gga8ac9813c9c9df8a1e7f6ec66b346f08ea30954d90085f6eaaf5817917fc5fecb3"><div class="ttname"><a href="group___enumerations_ga8ac9813c9c9df8a1e7f6ec66b346f08e.html#gga8ac9813c9c9df8a1e7f6ec66b346f08ea30954d90085f6eaaf5817917fc5fecb3">fabgl::LineEnds::Circle</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_ab0b8474f0db1a7826a6ac08bb269635c_html_ab0b8474f0db1a7826a6ac08bb269635c"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_ab0b8474f0db1a7826a6ac08bb269635c.html#ab0b8474f0db1a7826a6ac08bb269635c">fabgl::GlyphOptions::DoubleWidth</a></div><div class="ttdeci">GlyphOptions &amp; DoubleWidth(uint8_t value)</div><div class="ttdoc">Helper method to set or reset doubleWidth. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00371">displaycontroller.h:371</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_a5ad74d5409163f1191ad4039b1447c26_html_a5ad74d5409163f1191ad4039b1447c26"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_a5ad74d5409163f1191ad4039b1447c26.html#a5ad74d5409163f1191ad4039b1447c26">fabgl::GlyphOptions::userOpt2</a></div><div class="ttdeci">uint16_t userOpt2</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00354">displaycontroller.h:354</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1caf5e09dd1da4088464f264b7a3118bff8"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1caf5e09dd1da4088464f264b7a3118bff8">fabgl::Blue</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00207">displaycontroller.h:207</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_a7e14f3c970df835ae878939c8f95cd3b_html_a7e14f3c970df835ae878939c8f95cd3b"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_a7e14f3c970df835ae878939c8f95cd3b.html#a7e14f3c970df835ae878939c8f95cd3b">fabgl::GlyphOptions::Italic</a></div><div class="ttdeci">GlyphOptions &amp; Italic(bool value)</div><div class="ttdoc">Helper method to set or reset italic. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00365">displaycontroller.h:365</a></div></div>
<div class="ttc" id="classfabgl_1_1_base_display_controller_a749df909b39fd096bf6e2813f2f5324c_html_a749df909b39fd096bf6e2813f2f5324c"><div class="ttname"><a href="classfabgl_1_1_base_display_controller_a749df909b39fd096bf6e2813f2f5324c.html#a749df909b39fd096bf6e2813f2f5324c">fabgl::BaseDisplayController::getScreenWidth</a></div><div class="ttdeci">int getScreenWidth()</div><div class="ttdoc">Determines the screen width in pixels. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00682">displaycontroller.h:682</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_a9274060e33708f97a1d77ca37f7bf0a8_html_a9274060e33708f97a1d77ca37f7bf0a8"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_a9274060e33708f97a1d77ca37f7bf0a8.html#a9274060e33708f97a1d77ca37f7bf0a8">fabgl::BitmappedDisplayController::getViewPortWidth</a></div><div class="ttdeci">virtual int getViewPortWidth()=0</div><div class="ttdoc">Determines horizontal size of the viewport. </div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_ada5f99a696a06cbd96b2b86d1e78878a_html_ada5f99a696a06cbd96b2b86d1e78878a"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_ada5f99a696a06cbd96b2b86d1e78878a.html#ada5f99a696a06cbd96b2b86d1e78878a">fabgl::BitmappedDisplayController::getViewPortHeight</a></div><div class="ttdeci">virtual int getViewPortHeight()=0</div><div class="ttdoc">Determines vertical size of the viewport. </div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b_a2222_aa99de428bd3e7715b73b335a5af9e900_html_aa99de428bd3e7715b73b335a5af9e900"><div class="ttname"><a href="structfabgl_1_1_r_g_b_a2222_aa99de428bd3e7715b73b335a5af9e900.html#aa99de428bd3e7715b73b335a5af9e900">fabgl::RGBA2222::A</a></div><div class="ttdeci">uint8_t A</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00309">displaycontroller.h:309</a></div></div>
<div class="ttc" id="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221_html_gafe919d7a7aeba256337f0fc494cf7221"><div class="ttname"><a href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#gafe919d7a7aeba256337f0fc494cf7221">fabgl::PixelFormat</a></div><div class="ttdeci">PixelFormat</div><div class="ttdoc">This enum defines a pixel format. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00444">displaycontroller.h:444</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_a2337a67770ebd18e0ced22ba40d79d24_html_a2337a67770ebd18e0ced22ba40d79d24"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_a2337a67770ebd18e0ced22ba40d79d24.html#a2337a67770ebd18e0ced22ba40d79d24">fabgl::BitmappedDisplayController::controllerType</a></div><div class="ttdeci">DisplayControllerType controllerType()</div><div class="ttdoc">Determines the display controller type. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00737">displaycontroller.h:737</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_ac653040b5d629ff1981c5802fc7d2b97_html_ac653040b5d629ff1981c5802fc7d2b97"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_ac653040b5d629ff1981c5802fc7d2b97.html#ac653040b5d629ff1981c5802fc7d2b97">fabgl::GlyphOptions::italic</a></div><div class="ttdeci">uint16_t italic</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00348">displaycontroller.h:348</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1ca3bec3eb0c8a4aab8e31a3a290493ab85"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca3bec3eb0c8a4aab8e31a3a290493ab85">fabgl::BrightWhite</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00218">displaycontroller.h:218</a></div></div>
<div class="ttc" id="structfabgl_1_1_glyph_html"><div class="ttname"><a href="structfabgl_1_1_glyph.html">fabgl::Glyph</a></div><div class="ttdoc">Represents a glyph position, size and binary data. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00327">displaycontroller.h:327</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca3ad2b2df091b8c2e3afa27bdcbb47eb6"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca3ad2b2df091b8c2e3afa27bdcbb47eb6">fabgl::CursorTextInput</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00521">displaycontroller.h:521</a></div></div>
<div class="ttc" id="structfabgl_1_1_point_html"><div class="ttname"><a href="structfabgl_1_1_point.html">fabgl::Point</a></div><div class="ttdoc">Represents the coordinate of a point. </div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l00190">fabutils.h:190</a></div></div>
<div class="ttc" id="structfabgl_1_1_bitmap_html"><div class="ttname"><a href="structfabgl_1_1_bitmap.html">fabgl::Bitmap</a></div><div class="ttdoc">Represents an image. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00465">displaycontroller.h:465</a></div></div>
<div class="ttc" id="structfabgl_1_1_paint_options_ab4ebc0c75fafd0babcc5095e6b3765ee_html_ab4ebc0c75fafd0babcc5095e6b3765ee"><div class="ttname"><a href="structfabgl_1_1_paint_options_ab4ebc0c75fafd0babcc5095e6b3765ee.html#ab4ebc0c75fafd0babcc5095e6b3765ee">fabgl::PaintOptions::swapFGBG</a></div><div class="ttdeci">uint8_t swapFGBG</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00595">displaycontroller.h:595</a></div></div>
<div class="ttc" id="group___enumerations_ga03403b592cc00776d70bc5ad6c177276_html_gga03403b592cc00776d70bc5ad6c177276ab4b9dd494783e3c156b72596ce15ff17"><div class="ttname"><a href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276ab4b9dd494783e3c156b72596ce15ff17">fabgl::NativePixelFormat::PALETTE2</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1cab5059a620e2c7dc57556b1e275c2f9bc"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cab5059a620e2c7dc57556b1e275c2f9bc">fabgl::Magenta</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00208">displaycontroller.h:208</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_aeb689cfc2364a4d66e3ac3368146c70d_html_aeb689cfc2364a4d66e3ac3368146c70d"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_aeb689cfc2364a4d66e3ac3368146c70d.html#aeb689cfc2364a4d66e3ac3368146c70d">fabgl::BitmappedDisplayController::refreshSprites</a></div><div class="ttdeci">void refreshSprites()</div><div class="ttdoc">Forces the sprites to be updated. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8cpp_source.html#l00562">displaycontroller.cpp:562</a></div></div>
<div class="ttc" id="fabutils_8h_html"><div class="ttname"><a href="fabutils_8h.html">fabutils.h</a></div><div class="ttdoc">This file contains some utility classes and functions. </div></div>
<div class="ttc" id="structfabgl_1_1_paint_options_a5802f48a4a51260d01324a9a46c4d840_html_a5802f48a4a51260d01324a9a46c4d840"><div class="ttname"><a href="structfabgl_1_1_paint_options_a5802f48a4a51260d01324a9a46c4d840.html#a5802f48a4a51260d01324a9a46c4d840">fabgl::PaintOptions::NOT</a></div><div class="ttdeci">uint8_t NOT</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00596">displaycontroller.h:596</a></div></div>
<div class="ttc" id="group___enumerations_gadb8147abda8588ce7306a700532148e1_html_ggadb8147abda8588ce7306a700532148e1a11b133271f0260621154f094888bd83e"><div class="ttname"><a href="group___enumerations_gadb8147abda8588ce7306a700532148e1.html#ggadb8147abda8588ce7306a700532148e1a11b133271f0260621154f094888bd83e">fabgl::DisplayControllerType::Bitmapped</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_ae74e61e5ecb7b667173a7aa2a38f576a_html_ae74e61e5ecb7b667173a7aa2a38f576a"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_ae74e61e5ecb7b667173a7aa2a38f576a.html#ae74e61e5ecb7b667173a7aa2a38f576a">fabgl::GlyphOptions::bold</a></div><div class="ttdeci">uint16_t bold</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00346">displaycontroller.h:346</a></div></div>
<div class="ttc" id="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221_html_ggafe919d7a7aeba256337f0fc494cf7221a4a18312b5b75f549d5551e5912ad6ebf"><div class="ttname"><a href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#ggafe919d7a7aeba256337f0fc494cf7221a4a18312b5b75f549d5551e5912ad6ebf">fabgl::PixelFormat::Mask</a></div></div>
<div class="ttc" id="namespacefabgl_html"><div class="ttname"><a href="namespacefabgl.html">fabgl</a></div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00036">canvas.cpp:36</a></div></div>
<div class="ttc" id="classfabgl_1_1_base_display_controller_a0872427e4a351bb3590e8d00096e9cba_html_a0872427e4a351bb3590e8d00096e9cba"><div class="ttname"><a href="classfabgl_1_1_base_display_controller_a0872427e4a351bb3590e8d00096e9cba.html#a0872427e4a351bb3590e8d00096e9cba">fabgl::BaseDisplayController::getScreenHeight</a></div><div class="ttdeci">int getScreenHeight()</div><div class="ttdoc">Determines the screen height in pixels. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00689">displaycontroller.h:689</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_a53fd6dae420a13b9871bc274f147ec8f_html_a53fd6dae420a13b9871bc274f147ec8f"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_a53fd6dae420a13b9871bc274f147ec8f.html#a53fd6dae420a13b9871bc274f147ec8f">fabgl::GlyphOptions::Underline</a></div><div class="ttdeci">GlyphOptions &amp; Underline(bool value)</div><div class="ttdoc">Helper method to set or reset underlined. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00368">displaycontroller.h:368</a></div></div>
<div class="ttc" id="structfabgl_1_1_bitmap_a40bc2241c1ab98232e200c5d492a68b0_html_a40bc2241c1ab98232e200c5d492a68b0"><div class="ttname"><a href="structfabgl_1_1_bitmap_a40bc2241c1ab98232e200c5d492a68b0.html#a40bc2241c1ab98232e200c5d492a68b0">fabgl::Bitmap::foregroundColor</a></div><div class="ttdeci">RGB888 foregroundColor</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00469">displaycontroller.h:469</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b_a8888_ad6dca68b61d96e60ca0062e00390ba9f_html_ad6dca68b61d96e60ca0062e00390ba9f"><div class="ttname"><a href="structfabgl_1_1_r_g_b_a8888_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">fabgl::RGBA8888::R</a></div><div class="ttdeci">uint8_t R</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00258">displaycontroller.h:258</a></div></div>
<div class="ttc" id="group___enumerations_ga03403b592cc00776d70bc5ad6c177276_html_ga03403b592cc00776d70bc5ad6c177276"><div class="ttname"><a href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#ga03403b592cc00776d70bc5ad6c177276">fabgl::NativePixelFormat</a></div><div class="ttdeci">NativePixelFormat</div><div class="ttdoc">This enum defines the display controller native pixel format. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00430">displaycontroller.h:430</a></div></div>
<div class="ttc" id="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221_html_ggafe919d7a7aeba256337f0fc494cf7221ab24d28cf12130dc2957866674bc65ff7"><div class="ttname"><a href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#ggafe919d7a7aeba256337f0fc494cf7221ab24d28cf12130dc2957866674bc65ff7">fabgl::PixelFormat::RGBA2222</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_abd0898e61591117a7b8dce2fa4b4c4d4_html_abd0898e61591117a7b8dce2fa4b4c4d4"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_abd0898e61591117a7b8dce2fa4b4c4d4.html#abd0898e61591117a7b8dce2fa4b4c4d4">fabgl::BitmappedDisplayController::enableBackgroundPrimitiveExecution</a></div><div class="ttdeci">void enableBackgroundPrimitiveExecution(bool value)</div><div class="ttdoc">Enables or disables drawings inside vertical retracing time. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8cpp_source.html#l00503">displaycontroller.cpp:503</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b_a8888_html"><div class="ttname"><a href="structfabgl_1_1_r_g_b_a8888.html">fabgl::RGBA8888</a></div><div class="ttdoc">Represents a 32 bit RGBA color. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00257">displaycontroller.h:257</a></div></div>
<div class="ttc" id="classfabgl_1_1_base_display_controller_aa4e745f41c133010dbc7f6f599aa74a2_html_aa4e745f41c133010dbc7f6f599aa74a2"><div class="ttname"><a href="classfabgl_1_1_base_display_controller_aa4e745f41c133010dbc7f6f599aa74a2.html#aa4e745f41c133010dbc7f6f599aa74a2">fabgl::BaseDisplayController::controllerType</a></div><div class="ttdeci">virtual DisplayControllerType controllerType()=0</div><div class="ttdoc">Determines the display controller type. </div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca55dd9cf4d48685689645caee1974ebf3"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca55dd9cf4d48685689645caee1974ebf3">fabgl::CursorUpArrow</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00515">displaycontroller.h:515</a></div></div>
<div class="ttc" id="group___enumerations_ga03403b592cc00776d70bc5ad6c177276_html_gga03403b592cc00776d70bc5ad6c177276a3ad9f499f52bd79815ec9efb1c0a11ad"><div class="ttname"><a href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276a3ad9f499f52bd79815ec9efb1c0a11ad">fabgl::NativePixelFormat::PALETTE4</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_html"><div class="ttname"><a href="unionfabgl_1_1_glyph_options.html">fabgl::GlyphOptions</a></div><div class="ttdoc">Specifies various glyph painting options. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00343">displaycontroller.h:343</a></div></div>
<div class="ttc" id="structfabgl_1_1_rect_html"><div class="ttname"><a href="structfabgl_1_1_rect.html">fabgl::Rect</a></div><div class="ttdoc">Represents a rectangle. </div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l00225">fabutils.h:225</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca56642684b6b35eadff43459770259a74"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca56642684b6b35eadff43459770259a74">fabgl::CursorMove</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00516">displaycontroller.h:516</a></div></div>
<div class="ttc" id="structfabgl_1_1_bitmap_ae0ffb42440f0305b6d22a1c6106b6e6f_html_ae0ffb42440f0305b6d22a1c6106b6e6f"><div class="ttname"><a href="structfabgl_1_1_bitmap_ae0ffb42440f0305b6d22a1c6106b6e6f.html#ae0ffb42440f0305b6d22a1c6106b6e6f">fabgl::Bitmap::width</a></div><div class="ttdeci">int16_t width</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00466">displaycontroller.h:466</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_gab91da6221ce0fc3b24f077fb4b775b2c"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#gab91da6221ce0fc3b24f077fb4b775b2c">fabgl::CursorName</a></div><div class="ttdeci">CursorName</div><div class="ttdoc">This enum defines a set of predefined mouse cursors. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00502">displaycontroller.h:502</a></div></div>
<div class="ttc" id="structfabgl_1_1_glyph_a09a2a45f731b02946ff6d3cd15c1a476_html_a09a2a45f731b02946ff6d3cd15c1a476"><div class="ttname"><a href="structfabgl_1_1_glyph_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">fabgl::Glyph::width</a></div><div class="ttdeci">uint8_t width</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00330">displaycontroller.h:330</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_a94fd39f8c9245ed51545f9dd6ce7f6ee_html_a94fd39f8c9245ed51545f9dd6ce7f6ee"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_a94fd39f8c9245ed51545f9dd6ce7f6ee.html#a94fd39f8c9245ed51545f9dd6ce7f6ee">fabgl::BitmappedDisplayController::setMouseCursor</a></div><div class="ttdeci">void setMouseCursor(Cursor *cursor)</div><div class="ttdoc">Sets mouse cursor and make it visible. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8cpp_source.html#l00659">displaycontroller.cpp:659</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b222_a7c7fb36d372d349a62c14f1e6c7337ea_html_a7c7fb36d372d349a62c14f1e6c7337ea"><div class="ttname"><a href="structfabgl_1_1_r_g_b222_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">fabgl::RGB222::B</a></div><div class="ttdeci">uint8_t B</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00278">displaycontroller.h:278</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2cae396000d9b30b372b1f810eaa7da04c8"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2cae396000d9b30b372b1f810eaa7da04c8">fabgl::CursorRightArrow</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00513">displaycontroller.h:513</a></div></div>
<div class="ttc" id="fabglconf_8h_html"><div class="ttname"><a href="fabglconf_8h.html">fabglconf.h</a></div><div class="ttdoc">This file contains FabGL library configuration settings, like number of supported colors...</div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_a6b94fdf3692083a41291eec4920c62d2_html_a6b94fdf3692083a41291eec4920c62d2"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_a6b94fdf3692083a41291eec4920c62d2.html#a6b94fdf3692083a41291eec4920c62d2">fabgl::BitmappedDisplayController::queueSize</a></div><div class="ttdeci">static int queueSize</div><div class="ttdoc">Size of display controller primitives queue. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00905">displaycontroller.h:905</a></div></div>
<div class="ttc" id="displaycontroller_8h_aa6aba27bc1a89db9e350b50bbf881f57_html_aa6aba27bc1a89db9e350b50bbf881f57"><div class="ttname"><a href="displaycontroller_8h_aa6aba27bc1a89db9e350b50bbf881f57.html#aa6aba27bc1a89db9e350b50bbf881f57">X</a></div><div class="ttdeci">int16_t X</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00320">displaycontroller.h:320</a></div></div>
<div class="ttc" id="structfabgl_1_1_bitmap_a777dd66f9609a587ee98ad50de301662_html_a777dd66f9609a587ee98ad50de301662"><div class="ttname"><a href="structfabgl_1_1_bitmap_a777dd66f9609a587ee98ad50de301662.html#a777dd66f9609a587ee98ad50de301662">fabgl::Bitmap::height</a></div><div class="ttdeci">int16_t height</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00467">displaycontroller.h:467</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_a5ccd64740850569f8c59d7c83c7590c4_html_a5ccd64740850569f8c59d7c83c7590c4"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_a5ccd64740850569f8c59d7c83c7590c4.html#a5ccd64740850569f8c59d7c83c7590c4">fabgl::BitmappedDisplayController::suspendBackgroundPrimitiveExecution</a></div><div class="ttdeci">virtual void suspendBackgroundPrimitiveExecution()=0</div><div class="ttdoc">Suspends drawings. </div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca48a1b84c118c385ab6d4e9f60b4e8e8c"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca48a1b84c118c385ab6d4e9f60b4e8e8c">fabgl::CursorPointerSimpleReduced</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00504">displaycontroller.h:504</a></div></div>
<div class="ttc" id="group___enumerations_ga03403b592cc00776d70bc5ad6c177276_html_gga03403b592cc00776d70bc5ad6c177276af5b6b419fa27f5fa080c74870b404358"><div class="ttname"><a href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276af5b6b419fa27f5fa080c74870b404358">fabgl::NativePixelFormat::RGB565BE</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1ca8e551a5ca49dca47dd8d5af7a04dd9ea"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca8e551a5ca49dca47dd8d5af7a04dd9ea">fabgl::BrightGreen</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00213">displaycontroller.h:213</a></div></div>
<div class="ttc" id="fabglconf_8h_a6d8d65c6f9d580f607cd2ff361955c00_html_a6d8d65c6f9d580f607cd2ff361955c00"><div class="ttname"><a href="fabglconf_8h_a6d8d65c6f9d580f607cd2ff361955c00.html#a6d8d65c6f9d580f607cd2ff361955c00">FABGLIB_UNDERLINE_POSITION</a></div><div class="ttdeci">#define FABGLIB_UNDERLINE_POSITION</div><div class="ttdef"><b>Definition:</b> <a href="fabglconf_8h_source.html#l00102">fabglconf.h:102</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_a15e1f87cbc70601e7bb67d5e48f2f73d_html_a15e1f87cbc70601e7bb67d5e48f2f73d"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_a15e1f87cbc70601e7bb67d5e48f2f73d.html#a15e1f87cbc70601e7bb67d5e48f2f73d">fabgl::GlyphOptions::blank</a></div><div class="ttdeci">uint16_t blank</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00350">displaycontroller.h:350</a></div></div>
<div class="ttc" id="structfabgl_1_1_size_html"><div class="ttname"><a href="structfabgl_1_1_size.html">fabgl::Size</a></div><div class="ttdoc">Represents a bidimensional size. </div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l00208">fabutils.h:208</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b222_aae2a690e4df0bce516938666009b5ea6_html_aae2a690e4df0bce516938666009b5ea6"><div class="ttname"><a href="structfabgl_1_1_r_g_b222_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">fabgl::RGB222::G</a></div><div class="ttdeci">uint8_t G</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00277">displaycontroller.h:277</a></div></div>
<div class="ttc" id="structfabgl_1_1_bitmap_a655d553e67e161e0952ce91663de4cd1_html_a655d553e67e161e0952ce91663de4cd1"><div class="ttname"><a href="structfabgl_1_1_bitmap_a655d553e67e161e0952ce91663de4cd1.html#a655d553e67e161e0952ce91663de4cd1">fabgl::Bitmap::dataAllocated</a></div><div class="ttdeci">bool dataAllocated</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00471">displaycontroller.h:471</a></div></div>
<div class="ttc" id="classfabgl_1_1_textual_display_controller_a2337a67770ebd18e0ced22ba40d79d24_html_a2337a67770ebd18e0ced22ba40d79d24"><div class="ttname"><a href="classfabgl_1_1_textual_display_controller_a2337a67770ebd18e0ced22ba40d79d24.html#a2337a67770ebd18e0ced22ba40d79d24">fabgl::TextualDisplayController::controllerType</a></div><div class="ttdeci">DisplayControllerType controllerType()</div><div class="ttdoc">Determines the display controller type. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00712">displaycontroller.h:712</a></div></div>
<div class="ttc" id="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221_html_ggafe919d7a7aeba256337f0fc494cf7221a925641e0b76c28cc940e8f3ca178d826"><div class="ttname"><a href="group___enumerations_gafe919d7a7aeba256337f0fc494cf7221.html#ggafe919d7a7aeba256337f0fc494cf7221a925641e0b76c28cc940e8f3ca178d826">fabgl::PixelFormat::Native</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1ca0ec16bf946457321307d9059f06344dc"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca0ec16bf946457321307d9059f06344dc">fabgl::BrightCyan</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00217">displaycontroller.h:217</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_ae0897f2355f7462b5ab003083418e3b4_html_ae0897f2355f7462b5ab003083418e3b4"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_ae0897f2355f7462b5ab003083418e3b4.html#ae0897f2355f7462b5ab003083418e3b4">fabgl::BitmappedDisplayController::setMouseCursorPos</a></div><div class="ttdeci">void setMouseCursorPos(int X, int Y)</div><div class="ttdoc">Sets mouse cursor position. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8cpp_source.html#l00690">displaycontroller.cpp:690</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_a94887c6019244300620e71d52e61a554_html_a94887c6019244300620e71d52e61a554"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_a94887c6019244300620e71d52e61a554.html#a94887c6019244300620e71d52e61a554">fabgl::BitmappedDisplayController::processPrimitives</a></div><div class="ttdeci">void processPrimitives()</div><div class="ttdoc">Draws immediately all primitives in the queue. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8cpp_source.html#l00519">displaycontroller.cpp:519</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_a37da1545d5037b279fbb10c622121427_html_a37da1545d5037b279fbb10c622121427"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_a37da1545d5037b279fbb10c622121427.html#a37da1545d5037b279fbb10c622121427">fabgl::BitmappedDisplayController::isDoubleBuffered</a></div><div class="ttdeci">bool isDoubleBuffered()</div><div class="ttdoc">Determines whether BitmappedDisplayController is on double buffered mode. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00865">displaycontroller.h:865</a></div></div>
<div class="ttc" id="structfabgl_1_1_bitmap_abe222f6d3581e7920dcad5306cc906a8_html_abe222f6d3581e7920dcad5306cc906a8"><div class="ttname"><a href="structfabgl_1_1_bitmap_abe222f6d3581e7920dcad5306cc906a8.html#abe222f6d3581e7920dcad5306cc906a8">fabgl::Bitmap::data</a></div><div class="ttdeci">uint8_t * data</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00470">displaycontroller.h:470</a></div></div>
<div class="ttc" id="structfabgl_1_1_glyph_a96db82e580e46e24e2b39dd6c5bf7c21_html_a96db82e580e46e24e2b39dd6c5bf7c21"><div class="ttname"><a href="structfabgl_1_1_glyph_a96db82e580e46e24e2b39dd6c5bf7c21.html#a96db82e580e46e24e2b39dd6c5bf7c21">fabgl::Glyph::data</a></div><div class="ttdeci">uint8_t const  * data</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00332">displaycontroller.h:332</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b_a2222_html"><div class="ttname"><a href="structfabgl_1_1_r_g_b_a2222.html">fabgl::RGBA2222</a></div><div class="ttdoc">Represents an 8 bit ABGR color. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00305">displaycontroller.h:305</a></div></div>
<div class="ttc" id="group___enumerations_gadb8147abda8588ce7306a700532148e1_html_gadb8147abda8588ce7306a700532148e1"><div class="ttname"><a href="group___enumerations_gadb8147abda8588ce7306a700532148e1.html#gadb8147abda8588ce7306a700532148e1">fabgl::DisplayControllerType</a></div><div class="ttdeci">DisplayControllerType</div><div class="ttdoc">This enum defines types of display controllers. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00652">displaycontroller.h:652</a></div></div>
<div class="ttc" id="displaycontroller_8h_a89a44c5e986590e4eca4fb8649bba64e_html_a89a44c5e986590e4eca4fb8649bba64e"><div class="ttname"><a href="displaycontroller_8h_a89a44c5e986590e4eca4fb8649bba64e.html#a89a44c5e986590e4eca4fb8649bba64e">doubleWidth</a></div><div class="ttdeci">uint16_t doubleWidth</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00328">displaycontroller.h:328</a></div></div>
<div class="ttc" id="group___enumerations_ga8ac9813c9c9df8a1e7f6ec66b346f08e_html_gga8ac9813c9c9df8a1e7f6ec66b346f08ea6adf97f83acf6453d4a6a4b1070f3754"><div class="ttname"><a href="group___enumerations_ga8ac9813c9c9df8a1e7f6ec66b346f08e.html#gga8ac9813c9c9df8a1e7f6ec66b346f08ea6adf97f83acf6453d4a6a4b1070f3754">fabgl::LineEnds::None</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b_a2222_aae2a690e4df0bce516938666009b5ea6_html_aae2a690e4df0bce516938666009b5ea6"><div class="ttname"><a href="structfabgl_1_1_r_g_b_a2222_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">fabgl::RGBA2222::G</a></div><div class="ttdeci">uint8_t G</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00307">displaycontroller.h:307</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_ad968eec19f2e3663a5431b96894636df_html_ad968eec19f2e3663a5431b96894636df"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_ad968eec19f2e3663a5431b96894636df.html#ad968eec19f2e3663a5431b96894636df">fabgl::BitmappedDisplayController::removeSprites</a></div><div class="ttdeci">void removeSprites()</div><div class="ttdoc">Empties the list of active sprites. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00848">displaycontroller.h:848</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b_a8888_aa99de428bd3e7715b73b335a5af9e900_html_aa99de428bd3e7715b73b335a5af9e900"><div class="ttname"><a href="structfabgl_1_1_r_g_b_a8888_aa99de428bd3e7715b73b335a5af9e900.html#aa99de428bd3e7715b73b335a5af9e900">fabgl::RGBA8888::A</a></div><div class="ttdeci">uint8_t A</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00261">displaycontroller.h:261</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b222_html"><div class="ttname"><a href="structfabgl_1_1_r_g_b222.html">fabgl::RGB222</a></div><div class="ttdoc">Represents a 6 bit RGB color. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00275">displaycontroller.h:275</a></div></div>
<div class="ttc" id="structfabgl_1_1_bitmap_a66a9a92335243033aaf7ac4bd401f78f_html_a66a9a92335243033aaf7ac4bd401f78f"><div class="ttname"><a href="structfabgl_1_1_bitmap_a66a9a92335243033aaf7ac4bd401f78f.html#a66a9a92335243033aaf7ac4bd401f78f">fabgl::Bitmap::format</a></div><div class="ttdeci">PixelFormat format</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00468">displaycontroller.h:468</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b888_a7c7fb36d372d349a62c14f1e6c7337ea_html_a7c7fb36d372d349a62c14f1e6c7337ea"><div class="ttname"><a href="structfabgl_1_1_r_g_b888_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">fabgl::RGB888::B</a></div><div class="ttdeci">uint8_t B</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00231">displaycontroller.h:231</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_adfa8c99739f7c4f7bc5e857f204ed5ce_html_adfa8c99739f7c4f7bc5e857f204ed5ce"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_adfa8c99739f7c4f7bc5e857f204ed5ce.html#adfa8c99739f7c4f7bc5e857f204ed5ce">fabgl::GlyphOptions::Bold</a></div><div class="ttdeci">GlyphOptions &amp; Bold(bool value)</div><div class="ttdoc">Helper method to set or reset bold. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00362">displaycontroller.h:362</a></div></div>
<div class="ttc" id="classfabgl_1_1_base_display_controller_html"><div class="ttname"><a href="classfabgl_1_1_base_display_controller.html">fabgl::BaseDisplayController</a></div><div class="ttdoc">Represents the base abstract class for all display controllers. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00662">displaycontroller.h:662</a></div></div>
<div class="ttc" id="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594_html_adcf201a8aabf55cb352ec05331242594"><div class="ttname"><a href="displaycontroller_8h_adcf201a8aabf55cb352ec05331242594.html#adcf201a8aabf55cb352ec05331242594">height</a></div><div class="ttdeci">uint8_t height</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00323">displaycontroller.h:323</a></div></div>
<div class="ttc" id="classfabgl_1_1_textual_display_controller_html"><div class="ttname"><a href="classfabgl_1_1_textual_display_controller.html">fabgl::TextualDisplayController</a></div><div class="ttdoc">Represents the base abstract class for textual display controllers. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00708">displaycontroller.h:708</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_a1f5e1f916971680531d2bfe97fc251d5_html_a1f5e1f916971680531d2bfe97fc251d5"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_a1f5e1f916971680531d2bfe97fc251d5.html#a1f5e1f916971680531d2bfe97fc251d5">fabgl::GlyphOptions::Blank</a></div><div class="ttdeci">GlyphOptions &amp; Blank(uint8_t value)</div><div class="ttdoc">Helper method to set or reset foreground and background swapping. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00377">displaycontroller.h:377</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_a89a44c5e986590e4eca4fb8649bba64e_html_a89a44c5e986590e4eca4fb8649bba64e"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_a89a44c5e986590e4eca4fb8649bba64e.html#a89a44c5e986590e4eca4fb8649bba64e">fabgl::GlyphOptions::doubleWidth</a></div><div class="ttdeci">uint16_t doubleWidth</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00352">displaycontroller.h:352</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b888_ad6dca68b61d96e60ca0062e00390ba9f_html_ad6dca68b61d96e60ca0062e00390ba9f"><div class="ttname"><a href="structfabgl_1_1_r_g_b888_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">fabgl::RGB888::R</a></div><div class="ttdeci">uint8_t R</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00229">displaycontroller.h:229</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1caaf9643770f3422478c9b60a3c71cd0aa"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1caaf9643770f3422478c9b60a3c71cd0aa">fabgl::BrightBlue</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00215">displaycontroller.h:215</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2caad568b79e2d62bfb331e014e3008a9b1"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2caad568b79e2d62bfb331e014e3008a9b1">fabgl::CursorCross2</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00510">displaycontroller.h:510</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca6309aeddcd8a7ed63f801b56866294ee"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca6309aeddcd8a7ed63f801b56866294ee">fabgl::CursorCross1</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00509">displaycontroller.h:509</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_adf5b991f529df52d907c00a061458857_html_adf5b991f529df52d907c00a061458857"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_adf5b991f529df52d907c00a061458857.html#adf5b991f529df52d907c00a061458857">fabgl::GlyphOptions::userOpt1</a></div><div class="ttdeci">uint16_t userOpt1</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00353">displaycontroller.h:353</a></div></div>
<div class="ttc" id="group___enumerations_ga03403b592cc00776d70bc5ad6c177276_html_gga03403b592cc00776d70bc5ad6c177276a2305a7e1bcc1d10f990698ed574363ac"><div class="ttname"><a href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276a2305a7e1bcc1d10f990698ed574363ac">fabgl::NativePixelFormat::PALETTE16</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_a1a03e74ed2fb8e2af22e7fd0454ae828_html_a1a03e74ed2fb8e2af22e7fd0454ae828"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_a1a03e74ed2fb8e2af22e7fd0454ae828.html#a1a03e74ed2fb8e2af22e7fd0454ae828">fabgl::BitmappedDisplayController::enableBackgroundPrimitiveTimeout</a></div><div class="ttdeci">void enableBackgroundPrimitiveTimeout(bool value)</div><div class="ttdoc">Enables or disables execution time limitation inside vertical retracing interrupt. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00786">displaycontroller.h:786</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca72c99523fd0e4d6808031972184261f2"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca72c99523fd0e4d6808031972184261f2">fabgl::CursorPointerShadowed</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00506">displaycontroller.h:506</a></div></div>
<div class="ttc" id="structfabgl_1_1_paint_options_html"><div class="ttname"><a href="structfabgl_1_1_paint_options.html">fabgl::PaintOptions</a></div><div class="ttdoc">Specifies general paint options. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00594">displaycontroller.h:594</a></div></div>
<div class="ttc" id="classfabgl_1_1_bitmapped_display_controller_adc1527381cd987281396cd3d894b73b1_html_adc1527381cd987281396cd3d894b73b1"><div class="ttname"><a href="classfabgl_1_1_bitmapped_display_controller_adc1527381cd987281396cd3d894b73b1.html#adc1527381cd987281396cd3d894b73b1">fabgl::BitmappedDisplayController::nativePixelFormat</a></div><div class="ttdeci">virtual NativePixelFormat nativePixelFormat()=0</div><div class="ttdoc">Represents the native pixel format used by this display. </div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2ca2b9b0a88c05502b6af6b5dde7fc070ad"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2ca2b9b0a88c05502b6af6b5dde7fc070ad">fabgl::CursorDownArrow</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00514">displaycontroller.h:514</a></div></div>
<div class="ttc" id="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c_html_ggab91da6221ce0fc3b24f077fb4b775b2cafa266b61a072ee1f788be3703f8e0190"><div class="ttname"><a href="group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#ggab91da6221ce0fc3b24f077fb4b775b2cafa266b61a072ee1f788be3703f8e0190">fabgl::CursorResize1</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00517">displaycontroller.h:517</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1ca19153c6eb83006792aac10c7eddb1df6"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1ca19153c6eb83006792aac10c7eddb1df6">fabgl::BrightYellow</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00214">displaycontroller.h:214</a></div></div>
<div class="ttc" id="displaycontroller_8h_ae74e61e5ecb7b667173a7aa2a38f576a_html_ae74e61e5ecb7b667173a7aa2a38f576a"><div class="ttname"><a href="displaycontroller_8h_ae74e61e5ecb7b667173a7aa2a38f576a.html#ae74e61e5ecb7b667173a7aa2a38f576a">bold</a></div><div class="ttdeci">uint16_t bold</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00322">displaycontroller.h:322</a></div></div>
<div class="ttc" id="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476_html_a09a2a45f731b02946ff6d3cd15c1a476"><div class="ttname"><a href="displaycontroller_8h_a09a2a45f731b02946ff6d3cd15c1a476.html#a09a2a45f731b02946ff6d3cd15c1a476">width</a></div><div class="ttdeci">uint8_t width</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00322">displaycontroller.h:322</a></div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_ggab87bacfdad76e61b9412d7124be44c1cad2982af85dc38167ea0fe5befa9feb26"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#ggab87bacfdad76e61b9412d7124be44c1cad2982af85dc38167ea0fe5befa9feb26">fabgl::BrightMagenta</a></div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00216">displaycontroller.h:216</a></div></div>
<div class="ttc" id="group___enumerations_ga03403b592cc00776d70bc5ad6c177276_html_gga03403b592cc00776d70bc5ad6c177276a5d9b47bd3b65072e0d5daf55f01da086"><div class="ttname"><a href="group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#gga03403b592cc00776d70bc5ad6c177276a5d9b47bd3b65072e0d5daf55f01da086">fabgl::NativePixelFormat::Mono</a></div></div>
<div class="ttc" id="unionfabgl_1_1_glyph_options_aa946869d35372eb428c67039ef29c754_html_aa946869d35372eb428c67039ef29c754"><div class="ttname"><a href="unionfabgl_1_1_glyph_options_aa946869d35372eb428c67039ef29c754.html#aa946869d35372eb428c67039ef29c754">fabgl::GlyphOptions::FillBackground</a></div><div class="ttdeci">GlyphOptions &amp; FillBackground(bool value)</div><div class="ttdoc">Helper method to set or reset fillBackground. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00359">displaycontroller.h:359</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="displaycontroller_8h.html">displaycontroller.h</a></li>
    <li class="footer">Generated on Mon Aug 2 2021 07:08:03 for FabGL by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
